aboutsummaryrefslogtreecommitdiff
path: root/mk/svnignore.mk
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-12-04 19:21:47 +0000
committerRoy Marples <roy@marples.name>2008-12-04 19:21:47 +0000
commite72aeebbcd0f46dec9da255b07184ed24ed1b4ef (patch)
treea479902ae9b0d212a0848e6572315acb410a2c30 /mk/svnignore.mk
parentdc712a109e26201309fe918268d4af270b929553 (diff)
make ignore now updates svn:ignore as different OS's have different targets.
Diffstat (limited to 'mk/svnignore.mk')
-rw-r--r--mk/svnignore.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/svnignore.mk b/mk/svnignore.mk
index 6a979f62..1d2c6250 100644
--- a/mk/svnignore.mk
+++ b/mk/svnignore.mk
@@ -6,7 +6,9 @@ IGNOREFILES+= ${CLEANFILES}
ignore:
@if test -n "${IGNOREFILES}"; then \
- echo "Ignoring ${IGNOREFILES}"; \
- files="$$(echo ${IGNOREFILES} | tr ' ' '\n')"; \
- eval svn propset svn:ignore \'"$${files}"\' .; \
+ echo "=> Ignoring ${IGNOREFILES}"; \
+ files="$$(echo "${IGNOREFILES}" | tr ' ' '\n')"; \
+ efiles="$$(svn propget svn:ignore .)"; \
+ sfiles="$$(printf "$${files}\n$${efiles}" | sort -u)"; \
+ eval svn propset svn:ignore \'"$${sfiles}"\' .; \
fi