10 if [ "$BASEPATH" == "" ]
12 printf "Usage: $0 <path>\n"
16 if [ ! -d "$BASEPATH" ]
18 printf "Path '$BASEPATH' does not exist or not a directory.\n"
22 #$GIT clone "https://gitorious.org/stg/stg.git" "$BASEPATH/stg"
23 $GIT clone "../" "$BASEPATH/stg"
25 if [ "$ARCHIVE" != "" ]
27 $RM -rf "$BASEPATH/stg/.git"
29 $TAR -C "$BASEPATH" -jcf "$BASEPATH/stg.tar" "stg"