# 2011 08 02 Mouse # Make sure LOCALROOT is set : ${LOCALROOT:=/local} # Version convenience variables. VER=`git log -1 --abbrev=10 --pretty=%h` # Die if anything fails. set -e # Build libtommath (cd libtommath && make libtommath.a) # Install it. Manually, since the Makefile (a) doesn't know how to # install any manpage and (b) wants to install in the wrong places. # We could fix this, but it's easier to just install it manually. mkdir -p $LOCALROOT/.lib/libtom-$VER mkdir -p $LOCALROOT/.include/libtom-$VER mkdir -p $LOCALROOT/.bin/libtom-$VER mkdir -p $LOCALROOT/.man/libtom-$VER install -c libtommath/libtommath.a $LOCALROOT/.lib/libtom-$VER install -c libtommath/*.h $LOCALROOT/.include/libtom-$VER mkdir -p $LOCALROOT/.man/libtom-$VER/cat3 nroff -mandoc libtom.man > $LOCALROOT/.man/libtom-$VER/cat3/libtom.0 # Clean up (cd libtommath && make clean)