#!/bin/sh # # $FreeBSD: release/8.4.0/release/scripts/doc-install.sh 75328 2001-04-08 23:09:21Z obrien $ # if [ "`id -u`" != "0" ]; then echo "Sorry, this must be done as root." exit 1 fi echo "You are about to extract the doc distribution into ${DESTDIR:-/} - are you SURE" echo -n "you want to do this over your installed system (y/n)? " read ans if [ "$ans" = "y" ]; then cat doc.?? | tar --unlink -xpzf - -C ${DESTDIR:-/} fi