3 SRC_DIR=stg-2.4-`date "+%Y.%m.%d-%H.%M.%S"`
4 ARC_NAME=$SRC_DIR.tar.gz
6 git clone git://gitorious.org/stg/stg.git $SRC_DIR
10 echo "Failed to clone repository"
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/stargazer/plugins/authorization/stress
19 rm -r $SRC_DIR/projects/stargazer/plugins/configuration/sgconfig2
20 rm -r $SRC_DIR/projects/stargazer/plugins/configuration/sgconfig-ng
21 rm -r $SRC_DIR/projects/stargazer/plugins/configuration/xrconfig
22 rm -r $SRC_DIR/projects/stargazer/plugins/other/userstat
23 rm -r $SRC_DIR/projects/stargazer/plugins/store/db
24 rm $SRC_DIR/doc/help.odt
26 make -C $SRC_DIR/doc/xmlrpc-doc
28 tar -zcf $ARC_NAME $SRC_DIR