#!/bin/sh
CWD=`pwd`
cd /tmp
rm -rf gcl-2.2.2
tar xzvf $CWD/gcl-2.2.2.tar.gz
cd gcl-2.2.2
# install docs:
mkdir -p /usr/doc/gcl-2.2.2
cp -a COPYING.LIB-2.0 ChangeLog FAQ MACHINES README doc /usr/doc/gcl-2.2.2
chown -R root.root /usr/doc/gcl-2.2.2/*
# this adds the /usr/info path, and selects dynamic compilation
zcat $CWD/gcl-2.2.2.diff.gz | patch -p1 -E
# if the tclConfig.sh and tkConfig.sh are in /usr/lib on slackware add
# a third argument to ./add-defs to give that directory...
./add-defs 386-linux /usr/lib
make
make install "PREFIX_DIR=/usr"
