fix copy the install files on split packages.

Signed-off-by: Biru Ionut <ionut@archlinux.ro>
[Aaron: Changed backtick syntax and added some quoting]
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
Biru Ionut 2009-08-05 19:22:12 +03:00 committed by Aaron Griffin
parent 2ba39720a0
commit 7c97db47cb
1 changed files with 8 additions and 3 deletions

View File

@ -191,9 +191,14 @@ for f in ${source[@]}; do
cp "$SRCDEST/$basef" "$uniondir/srcdest/"
fi
done
if [ "$install" != "" -a -f "$install" ]; then
cp "$install" "$uniondir/build/"
fi
install_files=$(grep "install=" PKGBUILD)
for f in $install_files;do
install="${f#"install="}"
if [ "$install" != "" -a -f "$install" ]; then
cp "$install" "$uniondir/build/"
fi
done
if [ -f "ChangeLog" ]; then
cp ChangeLog "$uniondir/build/"