#! /bin/bash
#
# This is an example manifest for use with INSTALL and INFO

title  "An Example Manifest"
author "Stuart Herbert" "S.Herbert@Sheffield.ac.uk"

# blurb goes here

comment
comment "Welcome to INSTALL, a software solution to installing and maintaining"
comment "distributions."
comment

# call `endinfo` to tell INFO to stop here

endinfo

# right, if we get here, we're doing an install

comment "Are you sure that you wish to install this package?"
pause

# if we get here, the user has agreed to install it.

target "/usr/doc" "INSTALL"		# I want to install into /usr/doc/INSTALL

dir "$TARGETDIR" 755 y			# I only need these two
dir "$TARGETBIN" 755

# install files

file bin/INSTALL $TARGETDIR/INSTALL 755
file bin/INFO    $TARGETDIR/INFO    755
file bin/REMOVE  $TARGETDIR/REMOVE  755

# we want to format the paper, and then install it

comment
comment "Please wait - formatting documentation"
comment
pr -h "   INSTALL Version 1.0 - Copyright (c) 1994 Stuart Herbert     "  < doc/INSTALL > doc/paper

file doc/paper $TARGETDIR/paper   644

# use links to add programs to the local bin dir

link $TARGETDIR/INSTALL $TARGETBIN/INSTALL
link $TARGETDIR/INFO    $TARGETBIN/INFO
link $TARGETDIR/REMOVE  $TARGETBIN/REMOVE

# add to log file, for the user to read once install has finished

log "Please read the file $TARGETDIR/paper for "
log "documentation about INSTALL."

# that'll do nicely
