From 7c97db47cb8b8568558bdfad0a16a3fb2ceb9f82 Mon Sep 17 00:00:00 2001 From: Biru Ionut Date: Wed, 5 Aug 2009 19:22:12 +0300 Subject: fix copy the install files on split packages. Signed-off-by: Biru Ionut [Aaron: Changed backtick syntax and added some quoting] Signed-off-by: Aaron Griffin --- makechrootpkg | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'makechrootpkg') 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/" -- cgit v1.2.3-24-g4f1b