From 511d0262ce4d74cc7df7d34b30c19ae5a2abba1e Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 12 Mar 2009 21:02:04 +0000 Subject: [PATCH] avoid double checks, and problems due to grep not liking to grep directories svn path=/main/branches/prefix/; revision=13102 --- tarball.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.26.2