openrc/mk/svnignore.mk

15 lines
472 B
Makefile

# rules to make svn ignore files
# Copyright 2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
IGNOREFILES+= ${CLEANFILES}
ignore:
@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}"\' .; \
fi