X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=tools%2Ffind-sources.sh;h=5e66a63460fe78be511e55b4252623723541e1df;hb=75428b027ecccf77d5230021bf6b8736c4a6955e;hp=3c2c2837c9d6e88345d7d7f0432381c7205f83dc;hpb=0658fe504b84d3b8bf90eb28c72ca62e83f190b6;p=senf.git diff --git a/tools/find-sources.sh b/tools/find-sources.sh index 3c2c283..5e66a63 100755 --- a/tools/find-sources.sh +++ b/tools/find-sources.sh @@ -1,16 +1,5 @@ #!/bin/sh -e -if [ -z "$1" ]; then - echo "Usage:" - echo " $0 [-c] " - echo - echo "-c Only list C/C++ source files" - echo - echo " are any find commands (which should contain a -print somewhere)" - echo "which are matched for any file fond" - exit 1 -fi - cond="" if [ "$1" = "-c" ]; then shift @@ -25,6 +14,7 @@ find . \ -name doc -prune -o \ -name debian -prune -o \ -name dist -prune -o \ + -name build -prune -o \ -name "*.a" -o \ -name "*.o" -o \ -name "*~" -o \ @@ -35,4 +25,4 @@ find . \ -name ".sconsign*" -o \ -name "semantic.cache" -o \ -name "all_includes.hh" -o \ - -type f $cond \( "$@" \) + -type f $cond \( "$@" -print \)