diff options
author | Remi Collet <remi@remirepo.net> | 2024-01-23 07:52:22 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-01-23 07:52:22 +0100 |
commit | f69a4438d8d65e9c6c614cee1f412fad3dc17f13 (patch) | |
tree | 6d3ac952fff1cfcce5906f2f369d5f7b5713e6cd /makesrc.sh | |
parent | 69cdb92347cbc932d2dcb69ba7aa8b0eeba90d5e (diff) |
update to 10.5.9
Diffstat (limited to 'makesrc.sh')
-rwxr-xr-x | makesrc.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |