From 2ab402b3dfd23dbec4c6818ba8f88440497d752c Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Thu, 16 Oct 2014 11:52:13 -0700 Subject: [PATCH] Bug 4093: source-maintenance.sh errors and warnings due to wrong tools/options --- scripts/source-maintenance.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/source-maintenance.sh b/scripts/source-maintenance.sh index c5af5ce424..8aeaa7e0ee 100755 --- a/scripts/source-maintenance.sh +++ b/scripts/source-maintenance.sh @@ -37,12 +37,14 @@ PWD=`pwd` # # Scan for incorrect use of #ifdef/#ifndef # -grep -E "ifn?def .*_SQUID_" ./* | grep -v -E "_H$" | while read f; do echo "PROBLEM?: ${PWD} ${f}"; done +bzr grep --no-recursive "ifn?def .*_SQUID_" | + grep -v -E "_H$" | + while read f; do echo "PROBLEM?: ${PWD} ${f}"; done # # Scan for file-specific actions # -for FILENAME in `ls -1`; do +for FILENAME in `bzr ls --versioned`; do case ${FILENAME} in @@ -133,7 +135,7 @@ for FILENAME in `ls -1`; do esac - if test "$FILENAME" = "libltdl" ; then + if test "$FILENAME" = "libltdl/" ; then : elif test -d $FILENAME ; then cd $FILENAME -- 2.47.2