summaryrefslogtreecommitdiffstats
path: root/makechrootpkg
diff options
context:
space:
mode:
authorBiru Ionut <ionut@archlinux.ro>2009-08-05 18:22:12 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-08-06 23:56:44 +0200
commit7c97db47cb8b8568558bdfad0a16a3fb2ceb9f82 (patch)
treecfd6af3e75263f817478e2ec7b28d8873e214b2a /makechrootpkg
parent2ba39720a0ac588d0edd40517f4af76b991355d1 (diff)
downloaddevtools-7c97db47cb8b8568558bdfad0a16a3fb2ceb9f82.tar.gz
devtools-7c97db47cb8b8568558bdfad0a16a3fb2ceb9f82.tar.xz
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>
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg11
1 files changed, 8 insertions, 3 deletions
diff --git a/makechrootpkg b/makechrootpkg
index 2ae729e..5f5fb88 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -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/"