include a language variable

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
Nic0Nic0Nii 3 years ago
parent b6c880bd3b
commit bddc0aa671
  1. 1
      sig
  2. 2
      utils/define.sh
  3. 4
      utils/main.sh
  4. 4
      utils/md5

1
sig

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

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

@ -13,11 +13,11 @@ if [ -z "$1" ]
echo ""
echo ""
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
do
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}"
fi
done

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

Loading…
Cancel
Save