mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
4f351f3ff4
1. Add to secr and bindists to possibly save the occasional fool who doesn't RTFM and uses the wrong command to extract this (or even someone who's legitimately using this to extract on top of a bindist somewhere *else*). 2. Do the right thing with any symlinks in the src tree. Right now, we're free of the buggers, but just in case.
19 lines
596 B
Bash
Executable File
19 lines
596 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# This file will extract all of the FreeBSD binaries into ${EXTRACT_TARGET}
|
|
# if it is set, or / otherwise.
|
|
#
|
|
# CAUTION DO NOT USE THIS TO INSTALL THE BINARIES ONTO A RUNNING
|
|
# SYSTEM, it will NOT WORK!!! You should use the extract command from /magic
|
|
# for installing the bindist onto your system.
|
|
SOURCEDIR=.
|
|
if [ X"${EXTRACT_TARGET}" = X"" ]; then
|
|
echo "YOU DO NOT WANT TO DO THAT!!!"
|
|
exit
|
|
EXTRACT_TARGET=/
|
|
fi
|
|
|
|
cd $SOURCEDIR
|
|
cat bin_tgz.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
|
#NO_EXPORT#cat des_tgz.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|