nanobsd: exclude .git (and .hg) in the same places we exclude .svn

Allow support of other VCSes.  Note that two other nanobsd files already
had a similar case, excluding .git and .hg in addition to CVS and .svn.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2019-05-24 15:21:23 +00:00
parent b1536a812b
commit b7ebd3eff2
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ cust_install_machine_files()
{
echo "cd ${NANO_CFG_BASE}/Files"
cd ${NANO_CFG_BASE}/Files
find . -print | grep -Ev '/(CVS|\.svn)' | cpio -dumpv ${NANO_WORLDDIR}
find . -print | grep -Ev '/(CVS|\.git|\.hg|\.svn)' | cpio -dumpv ${NANO_WORLDDIR}
}
customize_cmd cust_install_files
customize_cmd cust_install_machine_files

View File

@ -39,7 +39,7 @@ cust_install_machine_files() (
MACHINE_DIR="${NANO_TOOLS}/Files.${NANO_NAME}"
if [ -d "${MACHINE_DIR}" ]; then
cd ${MACHINE_DIR}
find . -print | grep -Ev '/(CVS|\.svn)' | cpio -dumpv ${NANO_WORLDDIR}
find . -print | grep -Ev '/(CVS|\.git|\.hg|\.svn)' | cpio -dumpv ${NANO_WORLDDIR}
else
echo "${MACHINE_DIR} not found, skipping step"
fi