[PATCH] build.mk svnclean-work target

From: Date: Tue, 14 Jul 2009 14:44:19 +0000
Subject: [PATCH] build.mk svnclean-work target
Groups: svn.migration 
Request: Send a blank email to svn-migration+get-471@lists.php.net to get a copy of this message
Is it possible for the svnclean-work target to check if a .svn directory exists before performing svn propget? Currently, if someone is using git they will get spammed with "svn: '.' is not a working copy" when running buildconf. This is also a problem if someone is does and svn export and then tries to build. If the patch below is acceptable, a gitclean-work target can also be made that checks for a .git/ directory as well. This would help those using git svn and ease future migration issues to git. Patch: diff --git a/build/build.mk b/build/build.mk index 0e4f53e..b02b396 100644 --- a/build/build.mk +++ b/build/build.mk @@ -71,8 +71,10 @@ cvsclean-work: done svnclean-work: - for i in find . -type d -and -not -path '*/.svn/*'; do \ - (cd dirname $$i 2>/dev/null && svn propget svn:ignore $i | xar - done + if test -d ".svn/"; then \ + for i in find . -type d -and -not -path '*/.svn/*'; do \ + (cd dirname $$i 2>/dev/null && svn propget svn:ignore + done \ + fi .PHONY: $(ALWAYS) snapshot -- Herman Radtke hermanradtke@gmail.com | http://hermanradtke.com

« previous svn.migration (#471) next »