summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorJonathan Bauer2013-03-01 18:22:10 +0100
committerJonathan Bauer2013-03-01 18:22:10 +0100
commit6edc351e326bc05b6ed0d82c66248ca0e1f8588a (patch)
treebf97111484630d2589a69de95087b23109cdfa2a /remote
parentuse download_untar in plymouth.build (diff)
downloadtm-scripts-6edc351e326bc05b6ed0d82c66248ca0e1f8588a.tar.gz
tm-scripts-6edc351e326bc05b6ed0d82c66248ca0e1f8588a.tar.xz
tm-scripts-6edc351e326bc05b6ed0d82c66248ca0e1f8588a.zip
use list_packet_files in ldm.build
Diffstat (limited to 'remote')
-rw-r--r--remote/tools/ldm/ldm.build16
1 files changed, 3 insertions, 13 deletions
diff --git a/remote/tools/ldm/ldm.build b/remote/tools/ldm/ldm.build
index c1bc08e8..35584058 100644
--- a/remote/tools/ldm/ldm.build
+++ b/remote/tools/ldm/ldm.build
@@ -13,28 +13,18 @@ build () {
./configure --prefix="/" --datarootdir="/usr/share" || perror "failed."
pinfo "Running make"
make || perror "failed."
- mkdir -p "$BUILDDIR"
pinfo "Running make install"
DESTDIR="$BUILDDIR" make install || perror "failed."
-
+
COPYLIST="list_dpkg_output"
+
[ -e "$COPYLIST" ] && rm "$COPYLIST"
- for PACKAGE in ${REQUIRED_PACKAGES}
- do
- for FILE in $(dpkg -L ${PACKAGE} | grep -v share/doc | grep -v share/man)
- do
- [ ! -d $FILE ] && echo $FILE >> "$COPYLIST"
- done
- done
-
- #prepare target dir & copy there
- mkdir -p "$BUILDDIR"
+ list_packet_files >> "$COPYLIST"
tarcopy "$(cat "$COPYLIST" | sort -u)" "$BUILDDIR"
cd -
touch .built
-
fi
}