#!/bin/sh
# Copyright (c) 1993 by Adobe Systems Incorporated.
# Script called immediately after a package is installed.
# $1=Install directory for package. $2=License data file
########################################################

/usr/bin/cat $1/bin/acroread \
| sed 's%INSTALL_DIR=$%INSTALL_DIR="'$1'"%' \
| sed 's%INSTALL_DIR=""$%INSTALL_DIR="'$1'"%' \
| sed 's%DPSNXDIR=$%DPSNXDIR="'$1'/dpsnx"%' \
| sed 's%DPSNXDIR=""$%DPSNXDIR="'$1'/dpsnx"%' \
> $1/bin/acroread.new
/usr/bin/rm -f $1/bin/acroread
/usr/bin/mv $1/bin/acroread.new $1/bin/acroread
chmod 555 $1/bin/acroread


if $1/desktop/olwm.deskinstall ; then status=0; else status=1; fi
if [ $status != 0 ]; then
	echo ""
	echo "Integration onto the desktop failed."
	echo ""
fi

exit 0
