summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2011-03-02 14:39:26 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2011-03-02 14:39:26 +0000
commita8c9f18299da1bf825c6a1fdbce273c58137524f (patch)
tree7614655486ed54841482c8143b6c735f775ce4b0 /release
parent8eacafea122b877adb3f474b46942309a1303f68 (diff)
downloadFreeBSD-src-a8c9f18299da1bf825c6a1fdbce273c58137524f.zip
FreeBSD-src-a8c9f18299da1bf825c6a1fdbce273c58137524f.tar.gz
Improve the distributeworld target in Makefile.inc1 and update the release
infrastructure to use it. make distributeworld can now be used without preparing its environment first and installs games into its distribution using the regular make distribute logic instead of post-processing with a script. Also add two new targets, packageworld and packagekernel, that tar up the results of distributeworld and distributekernel (also new), respectively.
Diffstat (limited to 'release')
-rw-r--r--release/Makefile8
-rwxr-xr-xrelease/scripts/games-make.sh37
-rw-r--r--release/scripts/lib32-make.sh8
3 files changed, 3 insertions, 50 deletions
diff --git a/release/Makefile b/release/Makefile
index c95b8f4..30b61b0 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -194,8 +194,8 @@ DIST_DOCS_ARCH_DEP=
# Things which without too much trouble can be considered variables
# BASE_DISTS are special in that they get full /etc installation sets.
#
-OTHER_DISTS?= catpages manpages games proflibs dict info doc ${ARCH_DISTS}
-BASE_DISTS?= base
+OTHER_DISTS?= catpages manpages proflibs dict info
+BASE_DISTS?= base doc games ${ARCH_DISTS}
.if ${TARGET_ARCH} == "amd64" || ${TARGET_ARCH} == "powerpc64"
ARCH_DISTS?= lib32
.endif
@@ -647,9 +647,7 @@ release.1:
mtree -deU -f ${MTREEFILES}/BSD.usr.dist \
-p ${RD}/trees/$$i/usr > /dev/null && \
mtree -deU -f ${MTREEFILES}/BSD.include.dist \
- -p ${RD}/trees/$$i/usr/include > /dev/null && \
- mtree -deU -f ${MTREEFILES}/BSD.var.dist \
- -p ${RD}/trees/$$i/var > /dev/null ; \
+ -p ${RD}/trees/$$i/usr/include > /dev/null; \
done
mkdir ${RD}/kernels
for i in ${KERNELS_BASE} ${KERNELS}; do \
diff --git a/release/scripts/games-make.sh b/release/scripts/games-make.sh
deleted file mode 100755
index 6e83d14..0000000
--- a/release/scripts/games-make.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# Move all the games out to their own dist
-if [ -d ${RD}/trees/base/usr/games ]; then
- tar -cf - -C ${RD}/trees/base/usr/games . |
- tar -xpf - -C ${RD}/trees/games/usr/games &&
- rm -rf ${RD}/trees/base/usr/games;
-fi
-
-if [ -d ${RD}/trees/base/usr/share/games ]; then
- tar -cf - -C ${RD}/trees/base/usr/share/games . |
- tar -xpf - -C ${RD}/trees/games/usr/share/games &&
- rm -rf ${RD}/trees/base/usr/share/games;
-fi
-
-if [ -d ${RD}/trees/base/var/games ]; then
- tar -cf - -C ${RD}/trees/base/var/games . |
- tar -xpf - -C ${RD}/trees/games/var/games &&
- rm -rf ${RD}/trees/base/var/games;
-fi
-
-if [ -d ${RD}/trees/manpages/usr/share/man/man6 ]; then
- mkdir -p ${RD}/trees/games/usr/share/man/man6
- tar -cf - -C ${RD}/trees/manpages/usr/share/man/man6 . |
- tar -xpf - -C ${RD}/trees/games/usr/share/man/man6 &&
- rm -rf ${RD}/trees/manpages/usr/share/man/man6
-fi
-
-if [ -d ${RD}/trees/catpages/usr/share/man/cat6 ]; then
- mkdir -p ${RD}/trees/games/usr/share/man/cat6
- tar -cf - -C ${RD}/trees/catpages/usr/share/man/cat6 . |
- tar -xpf - -C ${RD}/trees/games/usr/share/man/cat6 &&
- rm -rf ${RD}/trees/catpages/usr/share/man/cat6
-fi
diff --git a/release/scripts/lib32-make.sh b/release/scripts/lib32-make.sh
deleted file mode 100644
index 99bbee4..0000000
--- a/release/scripts/lib32-make.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# Clean the dust.
-cd ${RD}/trees/lib32 && \
- find . '(' -path '*/usr/share/*' -or -path '*/usr/lib/*' ')' -delete
OpenPOWER on IntegriCloud