- #!/bin/bash
- if [[ "$1" != "" ]];then
- if [[ "$2" != "" ]];then
- mkdir -p src/$1;
- ln -s `readlink -f $2` src/$1/src;
- echo "Linked source in $2";
- else
- mkdir -p src/$1/src;
- fi;
- touch src/$1/build.sh
- echo "Created project $1";
- else
- echo "Usage: $0 <projectname> [<sourcedir>]";
- fi;
|