diff --git a/scripts/module-create.sh b/scripts/module-create.sh index bcad7ec..61519db 100755 --- a/scripts/module-create.sh +++ b/scripts/module-create.sh @@ -26,7 +26,7 @@ source scripts/functions.sh || exit 1 # Get arguments. if [ $# -lt 3 ] then - echo "Usage: scripts/module-create.sh [args]" + echo "Usage: scripts/module-create.sh [args]" echo " available modules:" for i in scripts/build.* do @@ -34,13 +34,13 @@ then done exit 1 fi -LANG=$1 -shift TYPE=$1 shift +LANG=$1 +shift NAME=$1 shift -TEMPLATE=scripts/build.${LANG}.${TYPE} +TEMPLATE=scripts/build.${TYPE}.${LANG} if [ ! -e ${TEMPLATE}/instantiate ] then