summaryrefslogtreecommitdiffstats
path: root/makedeps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'makedeps.sh')
-rwxr-xr-xmakedeps.sh9
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