[PATCH] build.mk svnclean-work target
[email protected] (Herman Radtke) Tue, 14 Jul 2009 07:44:19 -0700
| Newsgroups | svn.migration |
|---|---|
| Message-ID | <[email protected]> |
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
[email protected] | http://hermanradtke.com