Swap type/lang in creation script

This commit is contained in:
Laurence Withers 2006-12-09 16:32:22 +00:00
parent 7f6786c908
commit 0678930b20
1 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ source scripts/functions.sh || exit 1
# Get arguments.
if [ $# -lt 3 ]
then
echo "Usage: scripts/module-create.sh <lang> <type> <name> [args]"
echo "Usage: scripts/module-create.sh <type> <lang> <name> [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