diff options
author | Remi Collet <remi@remirepo.net> | 2024-04-07 08:21:02 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-04-07 08:21:02 +0200 |
commit | 9aac1e498f51ef8b6a519fe27d02e9844c07253d (patch) | |
tree | 62212296600818c89f830659fa0a44dc29e771ca /makesrc.sh | |
parent | 43a2fc6f829c67c97d71b56cd8a50a8b0a4a078a (diff) |
update to 11.1.1
Diffstat (limited to 'makesrc.sh')
-rwxr-xr-x | makesrc.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -8,7 +8,7 @@ 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) +DATE=$(date -d "$DATE -5 days" +%Y-%m-%d) if [ -f $NAME-$VERSION-$SHORT.tgz ]; then echo "$NAME-$VERSION-$SHORT.tgz already there" @@ -17,11 +17,11 @@ else echo "Cloning..." rm -rf $PROJECT-$COMMIT - git clone --shallow-since=$DATE https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT || exit 1 + git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT || exit 1 echo "Getting commit..." pushd $PROJECT-$COMMIT - git checkout $COMMIT || exit1 + git checkout $COMMIT || exit 1 cp composer.json ../composer.json popd |