openrc/mk/svnignore.mk

15 lines
472 B
Makefile
Raw Normal View History

# rules to make svn ignore files
2008-03-03 18:34:08 +05:30
# Copyright 2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
2008-03-03 18:34:08 +05:30
IGNOREFILES+= ${CLEANFILES}
ignore:
2008-03-03 19:01:25 +05:30
@if test -n "${IGNOREFILES}"; then \
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}"\' .; \
2008-03-03 19:01:25 +05:30
fi