removed '\r' AGAIN

This commit is contained in:
Timerix 2025-06-20 19:21:34 +05:00
parent cae29d6395
commit 4c34c127a6
2 changed files with 48 additions and 46 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
# git add --renormalize .
*.sh text eol=lf

View File

@ -1,46 +1,46 @@
!/usr/bin/env bash usr/bin/env bash
nclude "cbuild/myprint.sh" lude "cbuild/myprint.sh"
unction detect_os { ction detect_os {
local uname_result="$(uname -o)" local uname_result="$(uname -o)"
# myprint "uname result: '$uname_result'" # myprint "uname result: '$uname_result'"
case "$uname_result" in case "$uname_result" in
Msys | Cygwin | MS/Windows) Msys | Cygwin | MS/Windows)
safeprint WINDOWS safeprint WINDOWS
;; ;;
Linux | GNU/Linux | Android) Linux | GNU/Linux | Android)
safeprint LINUX safeprint LINUX
;; ;;
FreeBSD) FreeBSD)
safeprint FREEBSD safeprint FREEBSD
;; ;;
Darwin) Darwin)
safeprint MACOS safeprint MACOS
;; ;;
*) *)
error "unknown operating system: $uname_result" error "unknown operating system: $uname_result"
;; ;;
esac esac
unction detect_arch { ction detect_arch {
local uname_result="$(uname -m)" local uname_result="$(uname -m)"
case "$uname_result" in case "$uname_result" in
arm | arm32 | armhf | aarch32) arm | arm32 | armhf | aarch32)
safeprint arm32 safeprint arm32
;; ;;
arm64 | aarch64 | aarch64_be | armv8b | armv8l) arm64 | aarch64 | aarch64_be | armv8b | armv8l)
safeprint arm64 safeprint arm64
;; ;;
x86 | i386 | i486 | i686) x86 | i386 | i486 | i686)
safeprint x86 safeprint x86
;; ;;
x64 | x86_64 | amd64) x64 | x86_64 | amd64)
safeprint x64 safeprint x64
;; ;;
*) *)
error "unknown CPU architecture: $uname_result" error "unknown CPU architecture: $uname_result"
;; ;;
esac esac