From: Fabian Groffen Date: Thu, 12 Mar 2009 21:02:04 +0000 (-0000) Subject: avoid double checks, and problems due to grep not liking to grep directories X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=511d0262ce4d74cc7df7d34b30c19ae5a2abba1e;p=portage.git avoid double checks, and problems due to grep not liking to grep directories svn path=/main/branches/prefix/; revision=13102 --- diff --git a/tarball.sh b/tarball.sh index aa2e02823..d0618e793 100755 --- a/tarball.sh +++ b/tarball.sh @@ -14,9 +14,13 @@ export TMP="/var/tmp" export V="$1" export DEST="${TMP}/${PKG}-${V}" -./tabcheck.py `grep "#\!@PORTAGE_PYTHON@" bin/* | cut -d: -f1` `find ./ -type f -name '*.py'` +./tabcheck.py $( + find ./ -name .svn -prune -o -type f ! -name '*.py' -print \ + | xargs grep -l "#\!@PORTAGE_PYTHON@" + find ./ -name .svn -prune -o -type f -name '*.py' -print +) -if [ -e ${DEST} ]; then +if [[ -e ${DEST} ]]; then echo EXISTS ALREADY exit 1 fi