Add --unlink flag to all tar commands, but each for different reasons.

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.
This commit is contained in:
jkh 1994-06-28 07:28:28 +00:00
parent 04b8177493
commit 6d707c8ea5
3 changed files with 18 additions and 18 deletions

View File

@ -14,5 +14,5 @@ if [ X"${EXTRACT_TARGET}" = X"" ]; then
fi fi
cd $SOURCEDIR cd $SOURCEDIR
cat bin_tgz.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat bin_tgz.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
#NO_EXPORT#cat des_tgz.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - #NO_EXPORT#cat des_tgz.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -

View File

@ -10,5 +10,5 @@ fi
cd $SOURCEDIR cd $SOURCEDIR
cat des_tgz.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat des_tgz.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
cat libcrypt.aa | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat libcrypt.aa | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -

View File

@ -20,22 +20,22 @@ cd $SOURCEDIR
# Note that base.aa is REQUIRED to be able to use the source tree for # Note that base.aa is REQUIRED to be able to use the source tree for
# building in. # building in.
# #
cat base.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat base.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
# #
# The following are optional # The following are optional
# #
cat bin.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat bin.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
cat contrib.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat contrib.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
cat etc.aa | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat etc.aa | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
cat games.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat games.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
cat gnu.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat gnu.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
cat include.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat include.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
cat lib.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat lib.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
#NO_EXPORT#cat libcrypt.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - #NO_EXPORT#cat libcrypt.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
cat libexec.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat libexec.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
cat sbin.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat sbin.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
cat share.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat share.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
cat sys.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat sys.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
cat usrbin.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat usrbin.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
cat usrsbin.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf - cat usrsbin.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -