diff options
author | Remi Collet <fedora@famillecollet.com> | 2017-03-05 18:57:19 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2017-03-05 18:57:19 +0100 |
commit | d6815ecbc230d89f728717b102e67008e9dd15fd (patch) | |
tree | 54352fafbfa48cd43b485a6793c7090cb6ea6fab /makesrc.sh | |
parent | 301a41583ccbd8c76f0cd5b7f50cd03b6c307832 (diff) |
php-zendframework-zend-diactoros: sync (some) changes from Fedora
Diffstat (limited to 'makesrc.sh')
-rwxr-xr-x | makesrc.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/makesrc.sh b/makesrc.sh deleted file mode 100755 index ab1375c..0000000 --- a/makesrc.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -NAME=$(basename $PWD) -OWNER=$(sed -n '/^%global github_owner/{s/.* //;p}' $NAME.spec) -PROJECT=$(sed -n '/^%global github_name/{s/.* //;p}' $NAME.spec) -VERSION=$(sed -n '/^%global github_version/{s/.* //;p}' $NAME.spec) -COMMIT=$(sed -n '/^%global github_commit/{s/.* //;p}' $NAME.spec) -SHORT=${COMMIT:0:7} - -echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION\n" - -echo "Cloning..." -rm -rf $PROJECT-$COMMIT -git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT - -echo "Getting commit..." -pushd $PROJECT-$COMMIT -git checkout $COMMIT -cp composer.json ../composer.json -popd - -echo "Archiving..." -tar czf $NAME-$VERSION-$SHORT.tgz --exclude .git $PROJECT-$COMMIT - -echo "Cleaning..." -rm -rf $PROJECT-$COMMIT - -echo "Done." |