cp -R ${INPUT} "$OUTPUT/$PACK_DIRECTORY"
-cd $OUTPUT/$PACK_DIRECTORY
-#JPR 5/4/2011
+cd "$OUTPUT/$PACK_DIRECTORY"
+
+#JPR 6/4/2011
#sed s,WITHOUT_NAME,"${PACK}", < CMakeLists.txt | \
-sed s,WITHOUT_NAME,"${PACK_DIRECTORY}", < CMakeLists.txt | \
-sed s,WITHOUT_AUTHOR,"${AUTHOR}", | \
-sed s,WITHOUT_DESCRIPTION,"${DESCRIPTION}", > CMakeLists.txt
+#sed s,WITHOUT_AUTHOR,"${AUTHOR}", | \
+#sed s,WITHOUT_DESCRIPTION,"${DESCRIPTION}", > CMakeLists.txt
+
+sed s,WITHOUT_NAME,"${PACK}", < CMakeLists.txt > tmp1CMakeLists.txt
+sed s,WITHOUT_AUTHOR,"${AUTHOR}", < tmp1CMakeLists.txt > tmp2CMakeLists.txt
+sed s,WITHOUT_DESCRIPTION,"${DESCRIPTION}", < tmp2CMakeLists.txt > CMakeLists.txt
+rm -f tmp1CMakeLists.txt tmp2CMakeLists.txt
-#rm -f CMakeLists2.txt CMakeLists3.txt
echo "Done !"
echo "Edit the file '$OUTPUT/${PACK_DIRECTORY}/CMakeLists.txt' to customize your package"