2 # creates the file architecture for a new user package
6 echo "usage : bbCreatePackage <package-folder-with-complete-path>"
10 INPUT=@bbCreatePackage_DATA_PATH@
13 echo "----- Creating new black box package '$1' in repository '$OUTPUT' -----"
17 echo "ERROR : Directory '$OUTPUT' already exists !"
22 echo "-> Creating directory '$OUTPUT'"
24 echo "-> Creating file '$OUTPUT/CMakeLists.txt'"
25 cp ${INPUT}/PackageCMakeLists.txt ${OUTPUT}/CMakeLists.txt
26 echo "-> Creating directory '$OUTPUT/cmake'"
28 echo "-> Copying files in '$OUTPUT/cmake'"
29 cp ${INPUT}/cmake/*.cmake ${OUTPUT}/cmake/
30 cp ${INPUT}/cmake/*.in ${OUTPUT}/cmake/
32 echo "Edit the file '$OUTPUT/CMakeLists.txt' to customize your package"