From aaa68e49e8e5a68950a63b9aa4a8c1f6aed2e2d2 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Tue, 1 Nov 2011 15:33:08 +0100 Subject: Move common functions to a shared file * common.sh is included on build time * most functions are copied from makepkg --- lddd.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lddd.in') diff --git a/lddd.in b/lddd.in index c011674..ae6c2b5 100644 --- a/lddd.in +++ b/lddd.in @@ -3,6 +3,8 @@ # lddd - find broken library links on your machine # +m4_include(lib/common.sh) + ifs=$IFS IFS="${IFS}:" @@ -11,10 +13,10 @@ extras= TEMPDIR=$(mktemp -d --tmpdir lddd-script.XXXX) -echo 'Go out and drink some tea, this will take a while :) ...' +msg 'Go out and drink some tea, this will take a while :) ...' # Check ELF binaries in the PATH and specified dir trees. for tree in $PATH $libdirs $extras; do - echo DIR $tree + msg2 "DIR $tree" # Get list of files in tree. files=$(find $tree -type f ! -name '*.a' ! -name '*.la' ! -name '*.py*' ! -name '*.txt' ! -name '*.h' ! -name '*.ttf' ! \ @@ -43,4 +45,4 @@ done # clean list sort -u $TEMPDIR/pacman.txt >> $TEMPDIR/possible-rebuilds.txt -echo "Files saved to $TEMPDIR" +msg "Files saved to $TEMPDIR" -- cgit v1.2.3-24-g4f1b