6 if [ "$#" != "1" ];then
8 echo "usage: $0 <release-name>"
11 echo "example: $0 chat_server"
16 if [ -e ..
/release
/$1 ];then
17 echo "a release with name $1 already exists would you like to delete it [y|N] $> \c"
19 if [ "$DEL" != "y" ];then
20 echo "aborting release creation"
28 REL_NAME_UPPER_CASE
=$
(echo $REL_NAME |
tr a-z A-Z
)
34 cp -r blank_app_rel
$REL_NAME
37 ls blank_app
* | ..
/rename.sh blank_app
$REL_NAME
40 # The base directory of the release
41 .
/substitute.sh
%%REL_NAME
%% $REL_NAME $REL_NAME/$REL_NAME.rel.src
42 .
/substitute.sh
%%REL_NAME
%% $REL_NAME $REL_NAME/$REL_NAME.src
45 mv $REL_NAME ..
/..
/release
48 echo "$REL_NAME has been generated and placed under release/$REL_NAME"