echo "bin = " $BINPATH
echo "input = " $INPUT
echo "pack = " $PACK
+PACK_DIRECTORY=${PACK}_PKG
+echo "pack_directory = " $PACK_DIRECTORY
-if [ -d $OUTPUT/${PACK} ]
+if [ -d $OUTPUT/${PACK_DIRECTORY} ]
then
- echo "ERROR : Directory '$OUTPUT/${PACK}' already exists !"
+ echo "ERROR : Directory '$OUTPUT/${PACK_DIRECTORY}' already exists !"
exit
fi
exit
fi
-cp -R ${INPUT} "$OUTPUT/$PACK"
-cd $OUTPUT/$PACK
+cp -R ${INPUT} "$OUTPUT/$PACK_DIRECTORY"
+cd $OUTPUT/$PACK_DIRECTORY
sed s,WITHOUT_NAME,"${PACK}", < CMakeLists.txt | \
sed s,WITHOUT_AUTHOR,"${AUTHOR}", | \
#rm -f CMakeLists2.txt CMakeLists3.txt
echo "Done !"
-echo "Edit the file '$OUTPUT/${PACK}/CMakeLists.txt' to customize your package"
+echo "Edit the file '$OUTPUT/${PACK_DIRECTORY}/CMakeLists.txt' to customize your package"