Navigation Menu

Skip to content

Commit

Permalink
MFH: dropped some more mime types, svnclean -> clean for multiple VCS
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwynne Raskind committed Jul 16, 2009
1 parent 86101f6 commit e9b85ae
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
9 changes: 6 additions & 3 deletions build/build.mk
Expand Up @@ -67,12 +67,15 @@ snapshot:

cvsclean-work:
@for i in `find . -name .cvsignore`; do \
(cd `dirname $$i` 2>/dev/null && rm -rf `cat .cvsignore | grep -v config.nice | sed 's/[\r\n]/ /g'` *.o *.a .libs || true); \
(cd `dirname $$i` 2>/dev/null && rm -rf `cat .cvsignore | grep -v config.nice | sed 's/[[:space:]]/ /g'` *.o *.a .libs || true); \
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 | xargs rm -rf && rm -rf *.o *.a .libs || true); \
@for i in `find . -type d -and -not -path '*/.svn/*'`; do \
(cd `dirname $$i` 2>/dev/null && svn propget svn:ignore $$i | xargs rm -rf && rm -rf *.o *.a .libs || true); \
done

gitclean-work:
@echo "We don't know how to clean Git checkouts yet."

.PHONY: $(ALWAYS) snapshot
2 changes: 0 additions & 2 deletions cvsclean.bat

This file was deleted.

3 changes: 0 additions & 3 deletions svnclean

This file was deleted.

11 changes: 11 additions & 0 deletions vcsclean
@@ -0,0 +1,11 @@
#! /bin/sh

if test -d 'CVS'; then
${MAKE:-make} -f build/build.mk cvsclean-work
elif test -d '.svn'; then
${MAKE:-make} -f build/build.mk svnclean-work
elif test -d '.git'; then
${MAKE:-make} -f build/build.mk gitclean-work
else
echo "Can't figure out your VCS, not cleaning."
fi

0 comments on commit e9b85ae

Please sign in to comment.