cat <<-'+++' |
# ================================================================
# PACKAGE:	fstat -- File Status INFORMATION
# INSTALL:	Script for Installation
# VERSION:	%R% (%E%)
# ================================================================
# Copyright (1994): Martin Weitzel, Darmstadt, Germany

# This installation file cares about copying the programs build
# from the sources, modules and libraries to the appropriate
# places on the target system.  How you make minor changes should
# be self-descriptive; if you need to change how and where the
# files are installed more radically, you may wish to contact the
# author, because their might be dependencies you cannot identify
# on first glance.

# Some defaults to ease changing the table below:

		BINDIR=/usr/local/bin

# ----------------------------------------------------------------
# NAME        ORIGIN       DESTINATION           OWNER GROUP PERMS
# ----------------------------------------------------------------
  -           fstat        $BINDIR/fstat           bin   bin   755
# ----------------------------------------------------------------
# !!!!!!! NO CHANGES SHOULD BE NECESSARY BELOW THIS POINT !!!!!!!!
+++
(
	nlist=
	while
		read name from dest owner group perms purpose
	do
		case $name:$from:$dest in
		\#*|::)	continue;;
		:*)	echo "# $name"; continue;;
		*=*)	echo $name; continue;;
		*:+\>:*)for n in $nlist
			do eval 'echo "$n=$'$n'"'
			done >$dest;;
		*:+m*)	cmd=MKDIR;;
		*:+l*)	cmd=LINK; from=$lastdest;;
		*:+c*)	cmd=COPY; from=$lastdest;;
		*:*:*/)	cmd=MOVE; dest=$dest$from;;
		*:*:*)	cmd=MOVE;;
		esac
		case $cmd in
		MKDIR)	echo "test -d $dest || mkdir $dest";;
		MOVE)	echo "cmp -s $from $dest || mv $from $dest";;
		LINK)	echo "cmp -s $from $dest || ln -f $from $dest";;
		COPY)	echo "cmp -s $from $dest || cp $from $dest";;
		esac
		echo "chown $owner $dest"
		echo "chgrp $group $dest"
		echo "chmod $perms $dest"
		case $name in
		-);; *)	nlist="$nlist $name"; echo "$name=$dest"
		esac
		lastdest=$dest
	done
) | sh $1
