Use bzip instead of gzip, rename the tar file to make it more obvious that
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 8 Jul 2006 18:12:05 +0000 (18:12 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 8 Jul 2006 18:12:05 +0000 (18:12 +0000)
only kernel sources are included, and allow WITHOUT_SRCS to be defined to
prevent inclusion of the kernel sources in the ISO.

Suggested-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
nrelease/Makefile

index 4a2dfec..ff7d945 100644 (file)
@@ -1,4 +1,4 @@
-# $DragonFly: src/nrelease/Makefile,v 1.55 2006/07/08 03:19:30 dillon Exp $
+# $DragonFly: src/nrelease/Makefile,v 1.56 2006/07/08 18:12:05 dillon Exp $
 #
 
 # compat target
@@ -139,7 +139,9 @@ buildiso:
 # Include kernel sources on the release CD (~14MB)
 #
 syssrcs:
-       ( cd ${.CURDIR}/../..; tar czf ${ISOROOT}/usr/src.tgz src/Makefile src/Makefile.inc1 src/sys )
+.if !defined(WITHOUT_SRCS)
+       ( cd ${.CURDIR}/../..; tar --exclude CVS -cf - src/Makefile src/Makefile.inc1 src/sys | bzip2 -9 > ${ISOROOT}/usr/src-sys.tar.bz2 )
+.endif
 
 customizeiso:
        (cd ${PKGSRC_PKG_PATH}; tar xzpf ${PKGSRC_BOOTSTRAP_KIT}.tgz)