summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmakesrc.sh11
1 files changed, 3 insertions, 8 deletions
diff --git a/makesrc.sh b/makesrc.sh
index bb8acae..3054ed1 100755
--- a/makesrc.sh
+++ b/makesrc.sh
@@ -9,17 +9,12 @@ echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Vers
echo "Cloning..."
rm -rf $PROJECT-$VERSION
-git clone --recursive https://github.com/$OWNER/$PROJECT.git $PROJECT-$VERSION
-
-echo "Getting tag..."
-pushd $PROJECT-$VERSION
-git checkout v$VERSION
-popd
+git clone --branch v$VERSION --recursive https://github.com/$OWNER/$PROJECT.git $PROJECT-$VERSION
echo "Archiving..."
-tar czf $NAME-$VERSION.tgz --exclude .git $PROJECT-$VERSION
+tar czf $NAME-$VERSION.tgz --exclude-vcs $PROJECT-$VERSION
echo "Cleaning..."
-#rm -rf $PROJECT-$VERSION
+rm -rf $PROJECT-$VERSION
echo "Done."