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.
 | 
					# Get arguments.
 | 
				
			||||||
if [ $# -lt 3 ]
 | 
					if [ $# -lt 3 ]
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
    echo "Usage: scripts/module-create.sh <lang> <type> <name> [args]"
 | 
					    echo "Usage: scripts/module-create.sh <type> <lang> <name> [args]"
 | 
				
			||||||
    echo "    available modules:"
 | 
					    echo "    available modules:"
 | 
				
			||||||
    for i in scripts/build.*
 | 
					    for i in scripts/build.*
 | 
				
			||||||
    do
 | 
					    do
 | 
				
			||||||
| 
						 | 
					@ -34,13 +34,13 @@ then
 | 
				
			||||||
    done
 | 
					    done
 | 
				
			||||||
    exit 1
 | 
					    exit 1
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
LANG=$1
 | 
					 | 
				
			||||||
shift
 | 
					 | 
				
			||||||
TYPE=$1
 | 
					TYPE=$1
 | 
				
			||||||
shift
 | 
					shift
 | 
				
			||||||
 | 
					LANG=$1
 | 
				
			||||||
 | 
					shift
 | 
				
			||||||
NAME=$1
 | 
					NAME=$1
 | 
				
			||||||
shift
 | 
					shift
 | 
				
			||||||
TEMPLATE=scripts/build.${LANG}.${TYPE}
 | 
					TEMPLATE=scripts/build.${TYPE}.${LANG}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ ! -e ${TEMPLATE}/instantiate ]
 | 
					if [ ! -e ${TEMPLATE}/instantiate ]
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue