diff options
Diffstat (limited to 'remote')
| -rw-r--r-- | remote/tools/ldm/ldm.build | 16 |
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 } |
