generated from sigonasr2/CPlusPlusProjectTemplate
The good old Neggs are back.
https://sigonasr2.itch.io/meerca-chase-clone
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
713 B
28 lines
713 B
2 years ago
|
if [ -z "$1" ]
|
||
|
then
|
||
|
echo ""
|
||
|
echo " Usage: ./sig <command> {args}"
|
||
|
echo ""
|
||
|
printf "====\tCurrent Configuration"
|
||
|
printf "\t====================="
|
||
|
for t in ${VARS[@]}
|
||
|
do
|
||
|
printf "\n\t%-15s%20s" $t ${!t}
|
||
|
done
|
||
|
printf "\n====================================================="
|
||
|
echo ""
|
||
|
echo ""
|
||
|
echo " Command List:"
|
||
|
FILES=$(ls -1A ./$LANGUAGE/scripts 2>/dev/null | sed -e 's/\.sh$//' | sed -e 's/^/ /')
|
||
|
for f in $FILES
|
||
|
do
|
||
|
if [ -f "./$LANGUAGE/scripts/$f.sh" ]; then
|
||
|
DESC="$(head -n1 ./$LANGUAGE/scripts/$f.sh)"
|
||
|
printf "\n\t%-15s%-65s" $f "${DESC:1}"
|
||
|
fi
|
||
|
done
|
||
|
echo ""
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
./$LANGUAGE/scripts/$1.sh "${@:2}"
|