diff options
author | Remi Collet <remi@remirepo.net> | 2024-02-05 08:43:05 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-02-05 08:43:05 +0100 |
commit | 3761ba81bd58fa6413ffa2a8b32832feb3ad669a (patch) | |
tree | 89fe813eb1da0efcb5ba42433934259aed2cf10b /makesrc.sh | |
parent | 796a1fd615e8a25d443a33b699271b7ddb763e8b (diff) |
update to 3.49.0
Diffstat (limited to 'makesrc.sh')
-rwxr-xr-x | makesrc.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -8,13 +8,15 @@ VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec) COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec) SHORT=${COMMIT:0:7} +DATE=$(date -d "$DATE -4 days" +%Y-%m-%d) + if [ -f $NAME-$VERSION-$SHORT.tgz ]; then echo "Skip $NAME-$VERSION-$SHORT.tgz" else echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION, Commit=$COMMIT, Date=$DATE\n" echo "Cloning..." - git clone --shallow-since=$DATE https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT || exit1 + git clone --shallow-since=$DATE https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT || exit 1 echo "Getting commit..." pushd $PROJECT-$COMMIT |