index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-10-24 20:15:22 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-10-29 13:19:10 +0200 |
commit | bea69043fb9c32cf182a5fa22fdde90518e264f9 (patch) | |
tree | f71d30cb97072f938236d810ee1a569eb34ca9d7 /commitpkg.in | |
parent | 521c4ceec3ec621540f2b49633c89c357dcc69d1 (diff) |
-rw-r--r-- | commitpkg.in | 7 |
diff --git a/commitpkg.in b/commitpkg.in index 2a732b5..43cc015 100644 --- a/commitpkg.in +++ b/commitpkg.in @@ -86,14 +86,13 @@ done # check if changelog and install files are under version control for i in 'changelog' 'install'; do - filelist=$(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD) - for file in $filelist; do + while read -r file; do # evaluate any bash variables used - eval file=${file} + eval file=\"$(sed 's/^\(['\''"]\)\(.*\)\1$/\2/' <<< "$file")\" if ! svn status -v "${file}" | grep -q '^[ AMRX~]'; then abort "${file} is not under version control" fi - done + done < <(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD) done # see if any limit options were passed, we'll send them to rsync |