summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald van Haren <pressh@gmail.com>2009-10-28 11:59:48 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-10-28 11:59:48 -0700
commit6922cc39f0618efa41854cb74d26f82d5aa7a3b4 (patch)
tree24637f353ac47f73a90cedc17cecc7f545e18f90
parent61e8cd97fb01997859b135dc0741beff7911c6f5 (diff)
downloaddevtools-6922cc39f0618efa41854cb74d26f82d5aa7a3b4.tar.xz
Move the determination of unique .install files0.8.0
Move this inside the split packages loop Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xmakechrootpkg3
1 files changed, 1 insertions, 2 deletions
diff --git a/makechrootpkg b/makechrootpkg
index 5410cda..5095425 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -182,10 +182,9 @@ install_files=$(grep "install=" PKGBUILD)
for pkg in ${pkgname[@]}; do
install_files+=' '
install_files+=$(echo $install_files |sed "s/\$pkgname/$pkg/"|sed "s/\${pkgname}/$pkg/")
+ install_files=$(eval echo $install_files |tr '[:blank:]' '\n'|sort |uniq)
done
-install_files=$(eval echo $install_files |tr '[:blank:]' '\n'|sort |uniq)
-
for f in $install_files;do
install="${f#"install="}"
if [ "$install" != "" -a -f "$install" ]; then