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

# First we move directory X to Photoshop.MacFiles
/usr/bin/mv $1/X $1/Photoshop.MacFiles

# Modify launch script with the information about install directory
/usr/bin/cat $1/bin/photoshop \
| sed 's%INSTALL_DIR=$%INSTALL_DIR="'$1'"%' \
> $1/bin/photoshop.new
/usr/bin/rm -f $1/bin/photoshop
/usr/bin/mv $1/bin/photoshop.new $1/bin/photoshop
chmod 555 $1/bin/photoshop


# Change owner and group for root & sys repectively
echo "Changing ownerships..."
chown -R root $1; chgrp -R 0 $1
exit 0
