mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-22 17:24:23 +01:00
38 lines
1.1 KiB
Bash
Executable File
38 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# Move all the games out to their own dist
|
|
if [ -d ${RD}/trees/bin/usr/games ]; then
|
|
tar -cf - -C ${RD}/trees/bin/usr/games . |
|
|
tar -xpf - -C ${RD}/trees/games/usr/games &&
|
|
rm -rf ${RD}/trees/bin/usr/games;
|
|
fi
|
|
|
|
if [ -d ${RD}/trees/bin/usr/share/games ]; then
|
|
tar -cf - -C ${RD}/trees/bin/usr/share/games . |
|
|
tar -xpf - -C ${RD}/trees/games/usr/share/games &&
|
|
rm -rf ${RD}/trees/bin/usr/share/games;
|
|
fi
|
|
|
|
if [ -d ${RD}/trees/bin/var/games ]; then
|
|
tar -cf - -C ${RD}/trees/bin/var/games . |
|
|
tar -xpf - -C ${RD}/trees/games/var/games &&
|
|
rm -rf ${RD}/trees/bin/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
|