fix find invocation such that it doesn't try to check all .hg files
authorFabian Groffen <grobian@gentoo.org>
Wed, 14 Jul 2010 17:26:24 +0000 (19:26 +0200)
committerFabian Groffen <grobian@gentoo.org>
Wed, 14 Jul 2010 17:26:24 +0000 (19:26 +0200)
tarball.sh

index 78ee0a73c16568a515d5dede95ab24785b34a293..58c92662005c87078b1f991f088aa336f27e8c2e 100755 (executable)
@@ -14,9 +14,9 @@ export V="$1"
 export DEST="${TMP}/${PKG}-${V}"
 
 ./tabcheck.py $(
-       find ./ -name .git -prune -name .hg -prune -o -type f ! -name '*.py' -print \
+       find ./ -name .git -o -name .hg -prune -o -type f ! -name '*.py' -print \
                | xargs grep -l "#\!@PORTAGE_PYTHON@"
-       find ./ -name .git -prune -name .hg -prune -o -type f -name '*.py' -print
+       find ./ -name .git -o -name .hg -prune -o -type f -name '*.py' -print
 )
 
 if [[ -e ${DEST} ]]; then