diff options
author | Roy Marples <roy@marples.name> | 2008-03-03 13:31:25 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-03 13:31:25 +0000 |
commit | b614477948cfe21185f2a07f7b0d2b994371e876 (patch) | |
tree | 943b367c9b16662990521643ab039910fee6ab52 /mk | |
parent | 35929e23bb0c471c49d3403604d61cd1cba4da46 (diff) |
Fix ignore files some more.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/gitignore.mk | 12 |
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 |