From 6edc351e326bc05b6ed0d82c66248ca0e1f8588a Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 1 Mar 2013 18:22:10 +0100 Subject: use list_packet_files in ldm.build --- remote/tools/ldm/ldm.build | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'remote') 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 } -- cgit v1.2.3-55-g7522