diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-11-01 15:33:08 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-11-01 15:33:08 +0100 |
commit | aaa68e49e8e5a68950a63b9aa4a8c1f6aed2e2d2 (patch) | |
tree | f28082b5951313ca95959c82be1b0ad357e55290 /lddd.in | |
parent | 7c78599a61e3652f43fce33826aef7b443590b83 (diff) | |
download | devtools32-aaa68e49e8e5a68950a63b9aa4a8c1f6aed2e2d2.tar.xz |
Move common functions to a shared file
* common.sh is included on build time
* most functions are copied from makepkg
Diffstat (limited to 'lddd.in')
-rw-r--r-- | lddd.in | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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" |