#23286 [NEW]: cvsclean deletes pear/PEAR directory

From: Date: Sun, 20 Apr 2003 14:51:16 +0000
Subject: #23286 [NEW]: cvsclean deletes pear/PEAR directory
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15258@lists.php.net to get a copy of this message
From: tater at potatoe dot com Operating system: OS X 10.2 PHP version: 5CVS-2003-04-20 (dev) PHP Bug Type: PEAR related Bug description: cvsclean deletes pear/PEAR directory This is only relevant on case-insensitive OS's like OS X. If cvsclean in build/build.mk is run - because of a version of autoconf more recent than 2.13, for instance - it ends up deleting the pear/PEAR directory, because pear/.cvsignore contains "pear". The easiest way to fix the immediate problem would be to add a 'grep -v pear', but this is an attempt to solve the general problem of matching case: Index: build.mk =================================================================== RCS file: /repository/php4/build/build.mk,v retrieving revision 1.18 diff -u -r1.18 build.mk --- build.mk 21 Oct 2002 15:11:19 -0000 1.18 +++ build.mk 20 Apr 2003 14:48:52 -0000 @@ -67,7 +67,7 @@ cvsclean: @for i in find . -name .cvsignore; do \ - (cd dirname $$i 2>/dev/null && rm -rf `cat .cvsignore | grep -v config.nice` *.o *.a .libs || true); \ + (cd dirname $$i 2>/dev/null && cat .cvsignore | grep -v config.nice | xargs -n1 find . -maxdepth 1 -name | xargs -n1 rm -rfv && rm -rfv *.o *.a .libs || true); \ done .PHONY: $(ALWAYS) snapshot cvsclean -- Edit bug report at http://bugs.php.net/?id=23286&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23286&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23286&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23286&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23286&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23286&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23286&r=support Expected behavior: http://bugs.php.net/fix.php?id=23286&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23286&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23286&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23286&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23286&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23286&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23286&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23286&r=gnused

« previous php.pear.dev (#15258) next »