From 6922cc39f0618efa41854cb74d26f82d5aa7a3b4 Mon Sep 17 00:00:00 2001 From: Ronald van Haren Date: Wed, 28 Oct 2009 11:59:48 -0700 Subject: Move the determination of unique .install files Move this inside the split packages loop Signed-off-by: Aaron Griffin --- makechrootpkg | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3-24-g4f1b