diff options
author | Roland McGrath <roland@redhat.com> | 2009-01-04 05:31:15 -0800 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2009-01-04 05:31:15 -0800 |
commit | 89a9a010985edfa0ba8acbf96f8e0ba0fa3c2055 (patch) | |
tree | 50f0cbb8c9bfd7426f7d30045127bd9fabbd9c58 | |
parent | ce862303411e3526562184381a6b594053ac2a39 (diff) | |
download | debuginfo-test-scripts-89a9a010985edfa0ba8acbf96f8e0ba0fa3c2055.tar.gz debuginfo-test-scripts-89a9a010985edfa0ba8acbf96f8e0ba0fa3c2055.tar.xz debuginfo-test-scripts-89a9a010985edfa0ba8acbf96f8e0ba0fa3c2055.zip |
new script
-rwxr-xr-x | list-files.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/list-files.sh b/list-files.sh new file mode 100755 index 0000000..ca1e2e7 --- /dev/null +++ b/list-files.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +case "$1" in +all) names='-name exec -o -name dyn -o -name rel' ;; +norel) names='-name exec -o -name dyn' ;; +*) names="-name $1" ;; +esac +shift + +[ $# -gt 0 ] || set . + +find "$@" -mindepth 2 -maxdepth 2 \( $names \) ! -size 0 -print | +while read f; do + f="${f#./}" + d="${f%/*}" + sed "s@^@$d/@" $f +done |