From b614477948cfe21185f2a07f7b0d2b994371e876 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 3 Mar 2008 13:31:25 +0000 Subject: Fix ignore files some more. --- mk/gitignore.mk | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'mk') 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 -- cgit v1.2.3