summaryrefslogtreecommitdiffstats
path: root/makesrc.sh
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-02-05 08:43:05 +0100
committerRemi Collet <remi@php.net>2024-02-05 08:43:05 +0100
commit3761ba81bd58fa6413ffa2a8b32832feb3ad669a (patch)
tree89fe813eb1da0efcb5ba42433934259aed2cf10b /makesrc.sh
parent796a1fd615e8a25d443a33b699271b7ddb763e8b (diff)
update to 3.49.0
Diffstat (limited to 'makesrc.sh')
-rwxr-xr-xmakesrc.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/makesrc.sh b/makesrc.sh
index 0ddf2ba..42647d4 100755
--- a/makesrc.sh
+++ b/makesrc.sh
@@ -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