diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2008-06-13 00:46:58 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2008-06-13 00:46:58 +0000 |
commit | c2a30ac94fe9ef480e673a92a91b4c345d954dcc (patch) | |
tree | 665f17db9c5b76127385d0b1a2bf97cf22496ec5 /usr.sbin/sysmerge/sysmerge.sh | |
parent | 0c1bc4a0e8b8d5328ef132a97fd5e85b48ac992b (diff) |
- add support for ignoring files and directories from comparison
through an optionnal /etc/sysmerge.ignore file
requested by many
man page tweak from jmc@
/etc/changelist addition suggested by sthen@
ok sthen@ jdixon@ jmc@ naddy@
Diffstat (limited to 'usr.sbin/sysmerge/sysmerge.sh')
-rw-r--r-- | usr.sbin/sysmerge/sysmerge.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/sysmerge/sysmerge.sh b/usr.sbin/sysmerge/sysmerge.sh index d8a43608757..aee9f9e13f7 100644 --- a/usr.sbin/sysmerge/sysmerge.sh +++ b/usr.sbin/sysmerge/sysmerge.sh @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: sysmerge.sh,v 1.13 2008/06/13 00:33:04 ajacoutot Exp $ +# $OpenBSD: sysmerge.sh,v 1.14 2008/06/13 00:46:57 ajacoutot Exp $ # # This script is based on the FreeBSD mergemaster script, written by # Douglas Barton <DougB@FreeBSD.org> @@ -101,8 +101,13 @@ do_populate() { IGNORE_FILES="${IGNORE_FILES} ${cf}" fi done + if [ -r /etc/sysmerge.ignore ]; then + while read i; do \ + IGNORE_FILES="${IGNORE_FILES} $(echo ${i} | sed -e 's,\.\.,,g')" + done < /etc/sysmerge.ignore + fi for i in ${IGNORE_FILES}; do - rm -f ${TEMPROOT}/${i}; + rm -rf ${TEMPROOT}/${i}; done } |