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:
parent
b1536a812b
commit
b7ebd3eff2
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user