From f69a4438d8d65e9c6c614cee1f412fad3dc17f13 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 23 Jan 2024 07:52:22 +0100 Subject: update to 10.5.9 --- makesrc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'makesrc.sh') diff --git a/makesrc.sh b/makesrc.sh index 2b84cb1..45fea74 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -8,6 +8,8 @@ VERSION=$(sed -n '/^%global upstream_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 "$NAME-$VERSION-$SHORT.tgz already there" else @@ -15,7 +17,7 @@ else echo "Cloning..." rm -rf $PROJECT-$COMMIT - git clone --jobs 8 https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT || exit 1 + git clone --shallow-since=$DATE https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT || exit 1 echo "Getting commit..." pushd $PROJECT-$COMMIT -- cgit