X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FcreaNewProject%2FcreaNewProject.sh.in;h=f9d229e8681bfc4751ddc31b72d0955e7ad7576f;hb=9e7201b8488e634387f2ca91821f9964bbddc2ca;hp=c74f844c84c929e54f0ad646d9e110238b946641;hpb=16fa26d7830175d0d6f952982128c2d63b724f78;p=crea.git diff --git a/appli/creaNewProject/creaNewProject.sh.in b/appli/creaNewProject/creaNewProject.sh.in index c74f844..f9d229e 100755 --- a/appli/creaNewProject/creaNewProject.sh.in +++ b/appli/creaNewProject/creaNewProject.sh.in @@ -3,7 +3,7 @@ if [ $# -lt 2 ] then - echo "usage : creaNewProject " + echo "usage : creaNewProject " exit fi @@ -11,27 +11,27 @@ fi TMP=$(which $0|rev) BINPATH=$(echo ${TMP#*/}|rev) # Input data path -INPUT=${BINPATH}/creaNewProject_data +INPUT=${BINPATH}/../share/creaNewProject OUTPUT=$1 PROJECT=$2 -#echo "output = " $OUTPUT -#echo "bin = " $BINPATH -#echo "input = " $INPUT -#echo "project= " $PROJECT +echo "output = " $OUTPUT +echo "bin = " $BINPATH +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 @@ -41,5 +41,11 @@ cd $OUTPUT/$PROJECT 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