mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-25 13:25:37 +00:00
Support macos stat command in file2csource.sh.
This commit is contained in:
+6
-1
@@ -24,7 +24,12 @@ fi
|
||||
in_file="$1";
|
||||
out_file="$2";
|
||||
sym_name="$3";
|
||||
size=`stat -c "%s" "$in_file"`
|
||||
size="";
|
||||
if [[ $OSTYPE == 'darwin'* ]]; then
|
||||
size=`stat "-f%z" "$in_file"`
|
||||
else
|
||||
size=`stat -c "%s" "$in_file"`
|
||||
fi
|
||||
|
||||
|
||||
# header. extern means "global" in this context (needed because const
|
||||
|
||||
Reference in New Issue
Block a user