#!/bin/sh # Build Open Motif on Slackware by volkerdi@slackware.com CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi cd $TMP rm -rf motif motif-build tar xzvf $CWD/openmotif2.1.30.tar.gz cd motif zcat $CWD/openmotif2.1.30.diff.gz | patch -p1 --verbose zcat $CWD/openmotif2.1.30.diff2.gz | patch -p1 --verbose zcat $CWD/docs-readme.diff.gz | patch -p1 --verbose mkdir -p /usr/doc/openmotif2.1.30 cp -a --verbose $CWD/LICENSE BUGREPORT CLOSEDBUGS COPYRIGHT.MOTIF OPENBUGS README RELEASE RELNOTES /usr/doc/openmotif2.1.30 ( cd doc ; cp -a --verbose ps /usr/doc/openmotif2.1.30 ) ( cd /usr/doc/openmotif2.1.30/ps gzip -d --verbose *.Z */*.Z gzip -9 --verbose *.ps */*.ps ) cp -a --verbose demos /usr/doc/openmotif2.1.30 chown -R root.root /usr/doc/openmotif2.1.30/* find /usr/doc/openmotif2.1.30 -type d -exec chmod 755 {} \; find /usr/doc/openmotif2.1.30 -type f -exec chmod 644 {} \; # Now, get rid of the demo programs so they don't clutter /usr/X11R6/bin. # If users want to try out the demo programs, the source will be in # /usr/doc/openmotif... rm -r demos mkdir demos touch demos/Imakefile cd .. mkdir motif-build lndir $TMP/motif $TMP/motif-build cd motif-build mkdir -p imports/x11 ( cd imports/x11 ln -sf /usr/X11R6/bin . ln -sf /usr/X11R6/include . ln -sf /usr/X11R6/lib . ) make World make install make install.ln make install.man cat << EOF OK, now compress the manpages, move the #*$#& misplaced app-defaults, fix a few permissions, and tar it up. EOF