Update build script.
This commit is contained in:
@@ -10,7 +10,7 @@ if [ -d ".git" ];
|
|||||||
then
|
then
|
||||||
echo "Project is tracked by git!"
|
echo "Project is tracked by git!"
|
||||||
git_str=$(git log | head -n 1 | cut -c 8-16)
|
git_str=$(git log | head -n 1 | cut -c 8-16)
|
||||||
echo $git_str
|
echo "Build Commit: $git_str"
|
||||||
else
|
else
|
||||||
echo "Project is not tracked by git!"
|
echo "Project is not tracked by git!"
|
||||||
git_str=""
|
git_str=""
|
||||||
@@ -19,7 +19,7 @@ fi
|
|||||||
if [ -z "$SKIP_STANDALONE"];
|
if [ -z "$SKIP_STANDALONE"];
|
||||||
then
|
then
|
||||||
EXEC="$CC Source/Standalone/*.c Source/VM/*.c -DVER=\"$git_str\" -o Binaries/Sagittarius"
|
EXEC="$CC Source/Standalone/*.c Source/VM/*.c -DVER=\"$git_str\" -o Binaries/Sagittarius"
|
||||||
echo "[$INDEX]$EXEC"
|
echo "[$INDEX] $EXEC"
|
||||||
INDEX=$((INDEX+1))
|
INDEX=$((INDEX+1))
|
||||||
$EXEC
|
$EXEC
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user