summaryrefslogtreecommitdiffstats
path: root/makesrc.sh
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-10-30 10:23:21 +0100
committerRemi Collet <remi@php.net>2024-10-30 10:23:21 +0100
commit48f643512bd0bcbd877d766bceb3de299777925a (patch)
tree10f9ebf56015e5d67db13ecd53f81d3e088122df /makesrc.sh
parent7f8d1837b7c5ae330af120647b2daf2174c1519b (diff)
keep upstream layout for simplicityHEADmaster
Diffstat (limited to 'makesrc.sh')
-rwxr-xr-xmakesrc.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/makesrc.sh b/makesrc.sh
index cb5e069..dc25efb 100755
--- a/makesrc.sh
+++ b/makesrc.sh
@@ -8,7 +8,7 @@ PREVER=$(sed -n '/^%global upstream_prever/{s/.* //;p}' $NAME.spec)
COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec)
SHORT=${COMMIT:0:7}
-if [ -f $NAME-$VERSION$PREVER-$SHORT.tgz ]; then
+if [ -f $NAME-$VERSION$PREVER-$SHORT.tgz -a "$1" != "-f" ]; then
echo skip $NAME-$VERSION$PREVER-$SHORT.tgz already here
else
echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION$PREVER\n"
@@ -22,11 +22,9 @@ else
cp composer.json ../composer.json
composer config platform.php 7.2.5
rm composer.lock
- export COMPOSER_VENDOR_DIR=src/Composer/vendor
composer install --no-interaction --no-progress --no-dev --optimize-autoloader
- cp src/Composer/vendor/composer/installed.json ../
+ cp vendor/composer/installed.json ../
# bash completion
- ln -sf Composer/vendor/autoload.php src/bootstrap.php
bin/composer completion bash >../composer-bash-completion
popd