2 # creates the file architecture for a new user package
6 echo "usage : bbCreateBox <template-xml-file-name> <box-name> <package-name> [author] [description] [category]"
10 # bbCreatePackage path
12 BINPATH=$(echo ${TMP#*/}|rev)
14 #INPUT=${BINPATH}/@bbCreateBox_DATA_REL_PATH_FROM_BIN@/$1
23 echo "input = " $INPUT
24 echo "box name = " $BBCB_BOX_NAME
25 echo "package = " $BBCB_PACKAGE_NAME
26 echo "author = " $BBCB_AUTHOR
27 echo "description = " $BBCB_DESCRIPTION
28 echo "category = " $BBCB_CATEGORY
30 sed s,BBCB_BOX_NAME,"${BBCB_BOX_NAME}", < $INPUT | sed s/BBCB_AUTHOR/"${BBCB_AUTHOR}"/ | sed s{BBCB_DESCRIPTION{"${BBCB_DESCRIPTION}"{ | sed s/BBCB_CATEGORY/"${BBCB_CATEGORY}"/ > bb${BBCB_PACKAGE_NAME}${BBCB_BOX_NAME}.xml