Swap type/lang in creation script
This commit is contained in:
		
							parent
							
								
									7f6786c908
								
							
						
					
					
						commit
						0678930b20
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue