#23286 [Ver->Csd]: cvsclean deletes pear/PEAR directory
| From: | sniper@php.net | Date: | Mon, 28 Apr 2003 07:31:43 +0000 |
| Subject: | #23286 [Ver->Csd]: cvsclean deletes pear/PEAR directory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38530@lists.php.net to get a copy of this message | ||
ID: 23286
Updated by: sniper@php.net
Reported By: tater at potatoe dot com
-Status: Verified
+Status: Closed
Bug Type: Compile Failure
Operating System: OS X 10.2
PHP Version: PHP 4.3.2-RC
New Comment:
Better not touch the build/build.mk just because of this.
(the pear entry in pear/.cvsignore was bogus)
Previous Comments:
------------------------------------------------------------------------
[2003-04-28 02:24:00] sniper@php.net
This applies to PHP4 too..
------------------------------------------------------------------------
[2003-04-20 09:51:16] tater at potatoe dot com
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 this bug report at http://bugs.php.net/?id=23286&edit=1