#!/bin/sh CWD=`pwd` cd /tmp tar xzvf $CWD/transfig.3.2.3c.tar.gz cd transfig.3.2.3c find . -name "*.orig" | xargs rm zcat $CWD/transfig.3.2.3c.diff.gz | patch -p1 -E --verbose --backup --suffix=.orig xmkmf make Makefiles make make install make install.man mkdir -p /usr/doc/transfig.3.2.3c cp -a CHANGES LATEX.AND.XFIG NOTES README doc /usr/doc/transfig.3.2.3c chown -R root.root /usr/doc/transfig.3.2.3c find /usr/doc/transfig.3.2.3c -type f -exec chmod 644 {} \; rm /usr/doc/transfig.3.2.3c/doc/*.? /usr/doc/transfig.3.2.3c/doc/MAKEPS