diff options
-rwxr-xr-x | makesrc.sh | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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." |