]> git.stg.codes - stg.git/blob - projects/make_tarball/make.sh
Patch from SpiderX <spiderx@spiderx.dp.ua> - convertor -> sgconv
[stg.git] / projects / make_tarball / make.sh
1 #!/bin/sh
2
3 SRC_DIR=stg-2.4-`date "+%Y.%m.%d-%H.%M.%S"`
4 ARC_NAME=$SRC_DIR.tar.gz
5
6 git clone git://gitorious.org/stg/stg.git $SRC_DIR
7
8 if [ $? != 0 ]
9 then
10     echo "Failed to clone repository"
11     exit -1
12 fi
13
14 rm -rf $SRC_DIR/.git
15 rm -f $SRC_DIR/.gitignore
16 rm -r $SRC_DIR/projects/make_tarball
17 rm -r $SRC_DIR/projects/traffcounter
18 rm -r $SRC_DIR/projects/sgauthstress
19 rm -r $SRC_DIR/projects/stargazer/plugins/authorization/stress
20 rm -r $SRC_DIR/projects/stargazer/plugins/configuration/sgconfig2
21 rm -r $SRC_DIR/projects/stargazer/plugins/configuration/sgconfig-ng
22 rm -r $SRC_DIR/projects/stargazer/plugins/configuration/xrconfig
23 rm -r $SRC_DIR/projects/stargazer/plugins/other/userstat
24 rm -r $SRC_DIR/projects/stargazer/plugins/store/db
25 rm -r $SRC_DIR/doc/help
26 rm $SRC_DIR/doc/help.odt
27
28 make -C $SRC_DIR/doc/xmlrpc
29
30 tar -zcf $ARC_NAME $SRC_DIR