mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-25 12:02:01 +01:00
04f11c618f
src dists. This alone is a good reason to re-roll the SNAP before putting it on CD.
29 lines
687 B
Bash
Executable File
29 lines
687 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
if [ "`id -u`" != "0" ]; then
|
|
echo "Sorry, this must be done as root."
|
|
exit 1
|
|
fi
|
|
if [ $# -lt 1 ]; then
|
|
echo "You must specify which components of src to extract"
|
|
echo "possible subcomponents are:"
|
|
echo
|
|
echo "base bin contrib etc games gnu include lib libexec lkm"
|
|
echo "release sbin share smailcf sys ubin usbin"
|
|
echo
|
|
echo "You may also specify all to extract all subcomponents."
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$1" = "all" ]; then
|
|
dists="base bin contrib etc games gnu include lib libexec lkm release sbin share smailcf sys ubin usbin"
|
|
else
|
|
dists="$*"
|
|
fi
|
|
|
|
for i in $dists; do
|
|
echo "Extracting source component: $i"
|
|
cat s${i}.?? | tar --unlink -xpzf - -C /usr/src
|
|
done
|
|
exit 0
|