Initial Commit

This commit is contained in:
Creeper Lv
2026-04-11 12:52:14 +08:00
commit 349c71e4ea
6 changed files with 263 additions and 0 deletions
Executable
+27
View File
@@ -0,0 +1,27 @@
#!/bin/sh
if [ -z "$CC" ];
then
CC=cc
fi
INDEX=0
if [ -d ".git" ];
then
echo "Project is tracked by git!"
git_str=$(git log | head -n 1 | cut -c 8-16)
echo $git_str
else
echo "Project is not tracked by git!"
git_str=""
fi
if [ -z "$SKIP_STANDALONE"];
then
EXEC="$CC Source/Standalone/*.c Source/VM/*.c -DVER=\"$git_str\" -o Binaries/Sagittarius"
echo "[$INDEX]$EXEC"
INDEX=$((INDEX+1))
$EXEC
fi
echo "$INDEX Task(s) completed."