diff options
author | Remi Collet <remi@remirepo.net> | 2025-08-05 13:00:08 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-08-05 13:00:08 +0200 |
commit | cf96b7472226cf1cf54b99935ba66a129ee15b57 (patch) | |
tree | 736ac4d90951658db282f3ce9c330ba9b79f416a /makedeps.sh | |
parent | 00f941c88b62713a67074add2558024050b79a11 (diff) |
Diffstat (limited to 'makedeps.sh')
-rwxr-xr-x | makedeps.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/makedeps.sh b/makedeps.sh index 99ce444..3369a2f 100755 --- a/makedeps.sh +++ b/makedeps.sh @@ -3,9 +3,9 @@ NAME=$(sed -n '/^Name:/{s/.* //;p}' *.spec) VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec) MODULE=$(sed -n '/^%global gh_proj/{s/.* //;p}' $NAME.spec) -if [ -f $NAME-$VERSION.tgz ]; then +if [ -f $NAME-$VERSION.tar.gz ]; then echo "+ Unpack" - tar xf $NAME-$VERSION.tgz + tar xf $NAME-$VERSION.tar.gz pushd $MODULE-$VERSION echo "+ Fetch" @@ -14,6 +14,9 @@ if [ -f $NAME-$VERSION.tgz ]; then echo "+ Pack" tar czf ../$NAME-deps-$VERSION.tgz mycargo popd + + echo "+ Clean" + rm -r $MODULE-$VERSION else - echo $NAME-$VERSION.tgz missing + echo $NAME-$VERSION.tar.gz missing fi |