index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | makechrootpkg | 3 |
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 |