freebsd-dev/release/scripts/games-make.sh
David E. O'Brien 01df2ec328 Change the name of the 'bin' distribution to 'base'.
This is done since it contains much more than /bin, and also gets in the
way when making a combined install+fixit CD.

OK'ed by:	jkh
2002-04-23 22:16:41 +00:00

38 lines
1.1 KiB
Bash
Executable File

#!/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