3 echo creates the file architecture for a new user package
6 if %0%1==%0 goto ERROR01
9 rem bbCreatePackage path
12 set INPUT="%BINPATH%\@bbCreatePackage_DATA_REL_PATH_FROM_BIN@\void-Package"
18 set PACK_DIRECTORY=bbtk_%PACK%_PKG
24 echo author = %AUTHOR%
25 echo description = %DESCRIPTION%
26 echo pack_directory = %PACK_DIRECTORY%
28 IF EXIST %OUTPUT%\%PACK_DIRECTORY% GOTO ERROR02
30 echo "** Creating new black box package '%PACK%' in folder '%OUTPUT%'"
32 mkdir %OUTPUT%\%PACK_DIRECTORY%
33 xcopy %INPUT% %OUTPUT%\%PACK_DIRECTORY% /S
34 "%BINPATH%\bbSed" %OUTPUT%\%PACK_DIRECTORY%\CMakeLists.txt WITHOUT_NAME "%PACK%" > %OUTPUT%\%PACK_DIRECTORY%\CMakeLists2.txt
35 "%BINPATH%\bbSed" %OUTPUT%\%PACK_DIRECTORY%\CMakeLists2.txt WITHOUT_AUTHOR %AUTHOR% > %OUTPUT%\%PACK_DIRECTORY%\CMakeLists3.txt
36 "%BINPATH%\bbSed" %OUTPUT%\%PACK_DIRECTORY%\CMakeLists3.txt WITHOUT_DESCRIPTION %DESCRIPTION% > %OUTPUT%\%PACK_DIRECTORY%\CMakeLists.txt
37 del "%OUTPUT%\%PACK_DIRECTORY%\CMakeLists2.txt"
38 del "%OUTPUT%\%PACK_DIRECTORY%\CMakeLists3.txt"
40 echo "Edit the file '%OUTPUT%\%PACK_DIRECTORY%\CMakeLists.txt' to customize your package"
48 echo bbCreatePackage.bat "<package-path> <package-name> [author] [description] "
52 echo "ERROR : Directory '%OUTPUT%/%PACK_DIRECTORY%' already exists !"