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"
24 if [ "$ARCHIVE" != "" ]
26 $RM -rf "$BASEPATH/stg/.git"
28 $TAR -C "$BASEPATH" -jcf "$BASEPATH/stg.tar" "stg"