Skip to content

Commit ad3dd7a

Browse files
author
Gwynne Raskind
committed
MFH: dropped some more mime types, svnclean -> clean for multiple VCS
1 parent 2adf42f commit ad3dd7a

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

Diff for: build/build.mk

+5-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@ cvsclean-work:
7171
done
7272

7373
svnclean-work:
74-
for i in `find . -type d -and -not -path '*/.svn/*'`; do \
75-
(cd `dirname $$i` 2>/dev/null && svn propget svn:ignore $i | xargs rm -rf && rm -rf *.o *.a .libs || true); \
74+
@for i in `find . -type d -and -not -path '*/.svn/*'`; do \
75+
(cd `dirname $$i` 2>/dev/null && svn propget svn:ignore $$i | xargs rm -rf && rm -rf *.o *.a .libs || true); \
7676
done
7777

78+
gitclean-work:
79+
@echo "We don't know how to clean Git checkouts yet."
80+
7881
.PHONY: $(ALWAYS) snapshot

Diff for: cvsclean.bat

-2
This file was deleted.

Diff for: svnclean

-3
This file was deleted.

Diff for: vcsclean

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#! /bin/sh
2+
3+
if test -d 'CVS'; then
4+
${MAKE:-make} -f build/build.mk cvsclean-work
5+
elif test -d '.svn'; then
6+
${MAKE:-make} -f build/build.mk svnclean-work
7+
elif test -d '.git'; then
8+
${MAKE:-make} -f build/build.mk gitclean-work
9+
else
10+
echo "Can't figure out your VCS, not cleaning."
11+
fi

0 commit comments

Comments
 (0)