aboutsummaryrefslogtreecommitdiff
path: root/mk/gitignore.mk
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-03 13:31:25 +0000
committerRoy Marples <roy@marples.name>2008-03-03 13:31:25 +0000
commitb614477948cfe21185f2a07f7b0d2b994371e876 (patch)
tree943b367c9b16662990521643ab039910fee6ab52 /mk/gitignore.mk
parent35929e23bb0c471c49d3403604d61cd1cba4da46 (diff)
Fix ignore files some more.
Diffstat (limited to 'mk/gitignore.mk')
-rw-r--r--mk/gitignore.mk12
1 files changed, 4 insertions, 8 deletions
diff --git a/mk/gitignore.mk b/mk/gitignore.mk
index fca262be..09139b0e 100644
--- a/mk/gitignore.mk
+++ b/mk/gitignore.mk
@@ -6,13 +6,9 @@ IGNOREFILES+= ${CLEANFILES}
.PHONY: .gitignore
.gitignore:
- @if test -n "${IGNOREFILES}"; then echo "Ignoring ${IGNOREFILES}"; fi
- @for obj in ${IGNOREFILES}; do \
- if ! test -r .gitignore; then \
- echo "$${obj}" > .gitignore || exit $$?; \
- elif ! grep -q "^$${obj}$$" .gitignore; then \
- echo "$${obj}" >> .gitignore || exit $$?; \
- fi; \
- done
+ @if test -n "${IGNOREFILES}"; then \
+ echo "Ignoring ${IGNOREFILES}"; \
+ echo ${IGNOREFILES} | tr ' ' '\n' > .gitignore; \
+ fi
gitignore: .gitignore