#!/bin/sh CWD=`pwd` cd /tmp tar xzvf $CWD/x3270-3.1.1.6.tar.gz cd x3270-3.1.1 zcat $CWD/x3270-3.1.1.6.diff.gz | patch -p1 -E --verbose xmkmf -a make make install for file in x3270-script.man x3270.man x3270if.man ; do cat $file | gzip -9c > /usr/X11R6/man/man1/`basename $file .man`.1.gz done cat ibm_hosts.man | gzip -9c > /usr/X11R6/man/man5/ibm_hosts.5.gz cat X3270.xad > /var/X11R6/lib/app-defaults/X3270 mkdir -p /usr/doc/x3270-3.1.1.6 cp -a Docs/* Examples html /usr/doc/x3270-3.1.1.6 chown -R root.root /usr/doc/x3270-3.1.1.6