Native linux merge

This commit is contained in:
ChocoTaco 2020-01-02 15:10:26 -05:00
parent cb2a715e07
commit 9cf759d0ac
13 changed files with 132 additions and 271 deletions

View file

@ -0,0 +1,19 @@
#!/bin/bash
# -- Generate an alphabetized autoexec index file because we can't trust the load order
SCRIPTS_DIR=$1
INDEX_FILE="$SCRIPTS_DIR"/autoexec/AutoExecIndex.cs
mkdir -p "$SCRIPTS_DIR"/library
mv -v "$SCRIPTS_DIR"/autoexec/*.cs "$SCRIPTS_DIR"/library/.
scripts=(
"$SCRIPTS_DIR"/library/*.cs
)
for i in "${scripts[@]##*/}"
do
echo "exec(\"scripts/library/${i}\");" >> $INDEX_FILE
done
cat $INDEX_FILE