index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-09-27 09:43:26 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-10-13 08:23:34 +0200 |
commit | 8edb443c125cb668e6609b5ff696e565b15a6069 (patch) | |
tree | c8002d82405ac0048d8e36aece2729672f5a1f2c | |
parent | 4800be25c2089927b340f01d974ae2707bca8a86 (diff) |
-rw-r--r-- | finddeps.in | 7 |
diff --git a/finddeps.in b/finddeps.in index 0d59634..ec8cde4 100644 --- a/finddeps.in +++ b/finddeps.in @@ -4,7 +4,6 @@ # match=$1 -tld=$(pwd) if [[ -z $match ]]; then echo 'usage: finddeps <depname>' @@ -16,10 +15,9 @@ if [[ -z $match ]]; then fi for d in "$(find . -type d)"; do - cd "$d" - if [[ -f PKGBUILD ]]; then + if [[ -f "$d/PKGBUILD" ]]; then unset pkgname depends makedepends - . PKGBUILD + . "$d/PKGBUILD" for dep in "${depends[@]}"; do # lose the version comparator, if any depname=${dep%%[<>=]*} @@ -36,5 +34,4 @@ for d in "$(find . -type d)"; do [[ $depname = $match ]] && echo "$d (optdepends)" done fi - cd "$tld" done |