MS_Printf "Verifying archive integrity..."
if test $CRCsum = "0000000000"; then
test x$2 = xy && echo " $1 does not contain a CRC checksum."
else
sum1=`tail +266 $1 | cksum | sed -e 's/ /Z/' -e 's/ /Z/' | cut -dZ -f1`
if test "$sum1" = "$CRCsum"; then
test x$2 = xy && MS_Printf " Checksums are OK."
else
echo "Error in checksums: $sum1 is different from $CRCsum"
--
MD5_PATH=`type -p md5sum`
MD5_PATH=${MD5_PATH:-`type -p md5`}
PATH=$OLD_PATH
if test -x "$MD5_PATH"; then
md5sum=`tail +266 $1 | "$MD5_PATH" | cut -b-32`;
if test "$md5sum" != "$MD5"; then
echo "Error in MD5 checksums: $md5sum is different from $MD5"
exit 2
else
--
exit 0
;;
--list)
echo Target directory: $targetdir
tail +266 $0 | cat | tar tvf -
exit 0
;;
--check)
MS_Check "$0" y
--
res=3
if test "$keep" = n; then
trap 'echo Signal caught, cleaning up > /dev/tty; cd $TMPROOT; /bin/rm -rf $tmpdir; eval $finish; exit 15' 1 2 15
fi
if (cd "$location"; tail +266 $0; ) | cat | UnTAR | (while read a; do MS_Printf .; done; echo; ); then
(PATH=/usr/xpg4/bin:/usr/local/samsungprinter:/opt/intel/compiler60/ia32/bin:/usr/local/jdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/openwin/bin:/usr/games:/usr/local/openssh/bin:/usr/share/texmf/bin:/usr/local/kde/bin:/usr/src/qt/bin:/usr/local/pgp:/home/icculus/bin; chown -R `id -u` .; chgrp -R `id -g` .)
res=0
if test x"$script" != x; then
if test x"$verbose" = xy; then