diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-08-02 16:19:23 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-08-02 16:19:23 +0200 |
commit | a87fa1f50c811d0f9a58e80cc41eda8eb96818e4 (patch) | |
tree | d60772d4bd3d6fa4c19bba8eb4c5530cb05ff1f2 /makesrc.sh | |
parent | 4b45e7421ed81d9de97f4211d87cea8b22276b05 (diff) |
php-nette-component-model: 2.3.0
Diffstat (limited to 'makesrc.sh')
-rwxr-xr-x | makesrc.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,10 +1,10 @@ #!/bin/bash NAME=$(basename $PWD) -OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec) -PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME.spec) -VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec) -COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec) +OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME$1.spec) +PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME$1.spec) +VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME$1.spec) +COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME$1.spec) SHORT=${COMMIT:0:7} echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION\n" @@ -16,7 +16,7 @@ git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT echo "Getting commit..." pushd $PROJECT-$COMMIT git checkout $COMMIT -cp composer.json ../composer.json +cp composer.json ../composer$1.json popd echo "Archiving..." |