if [ $# -lt 2 ]
then
- echo "usage : creaNewProject <project-path> <project-name>"
+ echo "usage : creaNewProject <project-path> <project-name>"
exit
fi
echo "input = " $INPUT
echo "project= " $PROJECT
-if [ -d $OUTPUT/${PROJECT} ]
+if [ -d $OUTPUT/${PROJECT} ]
then
- echo "ERROR : Directory '$OUTPUT/${PROJECT}' already exists !"
+ echo "ERROR : Directory '$OUTPUT/${PROJECT}' already exists !"
exit 1
fi
echo "** Creating new project '$PROJECT' in folder '$OUTPUT'"
-if [ ! -d $OUTPUT ]
+if [ ! -d $OUTPUT ]
then
- echo "ERROR : Directory '$OUTPUT' does not exist !"
+ echo "ERROR : Directory '$OUTPUT' does not exist !"
exit 1
fi
cat CMakeLists.txt.in | sed s,PROJECT_NAME,"${PROJECT}", > CMakeLists.txt
rm CMakeLists.txt.in
-echo "Done !"
-echo "Edit the file '$OUTPUT/${PROJECT}/CMakeLists.txt' to customize your project"
+echo
+echo "New Project created !"
+echo
+echo "==>"
+echo "==> Edit the file '$OUTPUT/${PROJECT}/CMakeLists.txt' to customize your project"
+echo "==>"
+echo
+echo