include a language variable

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
Nic0Nic0Nii 2022-05-23 17:35:55 +00:00
parent b6c880bd3b
commit bddc0aa671
4 changed files with 7 additions and 4 deletions

1
sig
View File

@ -4,5 +4,6 @@ define PROJECT_NAME "JavaProjectTemplate"
define PROJECT_DIR "src/sig" define PROJECT_DIR "src/sig"
define MAIN_CLASS "sig.${PROJECT_NAME}" define MAIN_CLASS "sig.${PROJECT_NAME}"
define OUT_DIR "bin" define OUT_DIR "bin"
define LANGUAGE ""
source utils/main.sh source utils/main.sh

View File

@ -1,5 +1,7 @@
export VARS=("") export VARS=("")
export LANGUAGE=""
function define() { function define() {
VARS+=("$1") VARS+=("$1")
value="${*:2}" value="${*:2}"

View File

@ -13,11 +13,11 @@ if [ -z "$1" ]
echo "" echo ""
echo "" echo ""
echo " Command List:" echo " Command List:"
FILES=$(ls -1A ./scripts | sed -e 's/\.sh$//' | sed -e 's/^/ /') FILES=$(ls -1A ./$LANGUAGE/scripts | sed -e 's/\.sh$//' | sed -e 's/^/ /')
for f in $FILES for f in $FILES
do do
if [ $f != "md5" ]; then if [ $f != "md5" ]; then
DESC="$(head -n1 ./scripts/$f.sh)" DESC="$(head -n1 ./$LANGUAGE/scripts/$f.sh)"
printf "\n\t%-15s%-65s" $f "${DESC:1}" printf "\n\t%-15s%-65s" $f "${DESC:1}"
fi fi
done done

View File

@ -1,5 +1,5 @@
.coauthors:3785ad38663e5fc43e574914ad067294 - .coauthors:3785ad38663e5fc43e574914ad067294 -
define.sh:d6b20a25a04a60d94f466e48fa60ac69 - define.sh:74ea08fb12cab1053663f87007ddd29a -
main.sh:32a1f953ffca8584d1eb57c0ecd8a582 - main.sh:f9ad8db736f026b48fbfd93e6390e7dc -
search.sh:be052f906597073e394234adf51e0fb8 - search.sh:be052f906597073e394234adf51e0fb8 -
.updateDirectories:0ede00461e947494545e694040787b3f - .updateDirectories:0ede00461e947494545e694040787b3f -