#!/bin/tcsh -f

#create a symbolic link in /usr/bin to the gpc compiler
ln -s -f -h /Developer/Pascal/gpc344d2/bin/gpc /usr/bin/gpc

#to the gp utility
ln -s -f -h /Developer/Pascal/gpc344d2/bin/gp /usr/bin/gp

#to the gcc compiler that comes with it
ln -s -f -h /Developer/Pascal/gpc344d2/bin/gcc /usr/bin/gpcgcc

#to utilities
ln -s -f -h /Developer/Pascal/gpc344d2/bin/gpidump /usr/bin/gpidump
ln -s -f -h /Developer/Pascal/gpc344d2/bin/binobj /usr/bin/gpcbinobj
ln -s -f -h /Developer/Pascal/gpc344d2/bin/gpc-run /usr/bin/gpc-run

#to the directory that contains libgcc.a and libgpc.a
ln -s -f -h /Developer/Pascal/gpc344d2/lib/gcc/powerpc-apple-darwin7/3.4.4/ /Developer/Pascal/gpclibs

#to the gpc man pages
ln -s -f -h /Developer/Pascal/gpc344d2/man/man1/gpc.1 /usr/share/man/man1/gpc.1
ln -s -f -h /Developer/Pascal/gpc344d2/man/man1/gp.1 /usr/share/man/man1/gp.1
ln -s -f -h /Developer/Pascal/gpc344d2/man/man1/binobj.1 /usr/share/man/man1/gpcbinobj.1
ln -s -f -h /Developer/Pascal/gpc344d2/man/man1/gcc.1 /usr/share/man/man1/gpcgcc.1
ln -s -f -h /Developer/Pascal/gpc344d2/man/man1/gcov.1 /usr/share/man/man1/gpcgcov.1
ln -s -f -h /Developer/Pascal/gpc344d2/man/man1/cpp.1 /usr/share/man/man1/gpccpp.1
ln -s -f -h /Developer/Pascal/gpc344d2/man/man1/gpidump.1 /usr/share/man/man1/gpidump.1

#copy the gpc info pages
cp /Developer/Pascal/gpc344d2/info/gp* /usr/share/info/
