10202c140SRodney W. Grimes# $Id$ 20202c140SRodney W. Grimes# 30202c140SRodney W. Grimes 40202c140SRodney W. GrimesMTREE_DIR= ${.CURDIR}/../etc/mtree 50202c140SRodney W. Grimes 60202c140SRodney W. Grimeshieriarchy: 70202c140SRodney W. Grimes # If this exits with an error code of 2 your file hieriarchy was 80202c140SRodney W. Grimes # modified for some reason, please read the mtree output to understand 90202c140SRodney W. Grimes # what was changed, then run the command again. 100202c140SRodney W. Grimes # 110202c140SRodney W. Grimes # XXX This will currently error out if you have a procfs mounted, 120202c140SRodney W. Grimes # unmount it to get past this problem until procfs is fixed. 130202c140SRodney W. Grimes # 140202c140SRodney W. Grimes mtree -deu -f ${MTREE_DIR}/BSD.root.dist -p ${DESTDIR}/ 150202c140SRodney W. Grimes mtree -deu -f ${MTREE_DIR}/BSD.var.dist -p ${DESTDIR}/var 160202c140SRodney W. Grimes mtree -deu -f ${MTREE_DIR}/BSD.usr.dist -p ${DESTDIR}/usr 170202c140SRodney W. Grimes.if defined(MAKE_LOCAL) 180202c140SRodney W. Grimes mtree -deu -f ${MTREE_DIR}/BSD.local.dist -p ${DESTDIR}/usr/local 190202c140SRodney W. Grimes.endif 200202c140SRodney W. Grimes cd ${DESTDIR}/ && rm -f ${DESTDIR}/sys && ln -s usr/src/sys sys 21