From 3761ba81bd58fa6413ffa2a8b32832feb3ad669a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 5 Feb 2024 08:43:05 +0100 Subject: update to 3.49.0 --- makesrc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'makesrc.sh') 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 -- cgit