8 SRC_DIR=$(date "+${PREFIX}-%Y.%m.%d-%H.%M.%S")
11 ARC_NAME=$SRC_DIR.tar.gz
13 git clone git@stg.codes:stg.git $SRC_DIR
17 echo "Failed to clone repository"
22 rm -f $SRC_DIR/.gitignore
23 rm -r $SRC_DIR/projects/make_tarball
24 rm -r $SRC_DIR/projects/sgauthstress
25 rm -r $SRC_DIR/projects/rlm_stg
26 rm -r $SRC_DIR/projects/stargazer/plugins/authorization/stress
27 rm -r $SRC_DIR/doc/help
28 rm $SRC_DIR/doc/help.odt
30 if [ -f /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl ]
32 echo "Building doc..."
33 make -C $SRC_DIR/doc/xmlrpc
34 make -C $SRC_DIR/doc/help
36 echo "No XSL stylesheets, skipping doc build"
39 tar -zcf $ARC_NAME $SRC_DIR