diff options
author | Remi Collet <remi@remirepo.net> | 2025-07-25 14:51:10 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-07-25 14:51:10 +0200 |
commit | 126d189599fd81c2b4663f64a87baa2802394021 (patch) | |
tree | 93146d32eb50ede41b181edaa8c1368b9721e884 | |
parent | 225387adbb4ad9888acd29aec7f99a90124d10ea (diff) |
-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." |