mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
release: make symlink creation for src.tgz more robust
PR: 288256 Approved by: emaste Differential Revision: https://reviews.freebsd.org/D51335
This commit is contained in:
parent
f840492b5b
commit
479b9db526
1 changed files with 4 additions and 2 deletions
|
|
@ -162,7 +162,8 @@ kernel.txz: # Also (if enabled) kernel-dbg.txz.
|
|||
|
||||
src.txz:
|
||||
mkdir -p ${DISTDIR}/usr
|
||||
ln -fs ${WORLDDIR} ${DISTDIR}/usr/src
|
||||
rm -f ${DISTDIR}/usr/src
|
||||
ln -s ${WORLDDIR} ${DISTDIR}/usr/src
|
||||
( cd ${DISTDIR} && ${TAR_XZ_CMD} -cLvf ${.OBJDIR}/src.txz \
|
||||
--exclude .svn --exclude .zfs \
|
||||
--exclude .git --exclude @ --exclude usr/src/release/dist \
|
||||
|
|
@ -170,7 +171,8 @@ src.txz:
|
|||
|
||||
ports.txz:
|
||||
mkdir -p ${DISTDIR}/usr
|
||||
ln -fs ${PORTSDIR} ${DISTDIR}/usr/ports
|
||||
rm -f ${DISTDIR}/usr/ports
|
||||
ln -s ${PORTSDIR} ${DISTDIR}/usr/ports
|
||||
( cd ${DISTDIR} && ${TAR_XZ_CMD} -cLvf ${.OBJDIR}/ports.txz \
|
||||
--exclude .git --exclude .svn \
|
||||
--exclude usr/ports/distfiles --exclude usr/ports/packages \
|
||||
|
|
|
|||
Loading…
Reference in a new issue