#!/bin/bash # I'm a lazy bastard. # This builds and installs: # - libevapp # - libevapp_scaffold # - libevapp_util # - boiler export PREFIX=${PREFIX:-"/usr/local/"} export VERS=${VERS:-"0.1.0"} cmake . make mkdir -p $PREFIX/lib for lib in libevapp.so libevapp_util.so libevapp_scaffold.so; do cp $(basename $lib .so)/$lib $PREFIX/lib ln -s $PREFIX/lib/$lib $PREFIX/lib/${lib}.1 done mkdir -p $PREFIX/include cp -r include/* $PREFIX/include rm -rf $PREFIX/share/evapporate mkdir -p $PREFIX/share/evapporate/scripts cp scripts/* $PREFIX/share/evapporate/scripts sed -i 's:%%PREFIX%%:'$PREFIX':g' $PREFIX/share/evapporate/scripts/* cp -r skel $PREFIX/share/evapporate/skel # put a doc in mkdir -p $PREFIX/share/doc/evapporate-$VERS cp README $PREFIX/share/doc/evapporate-$VERS # boiler loads templates into the db mkdir -p $PREFIX/share/evapporate/bin cp boiler/boiler $PREFIX/share/evapporate/bin/boiler # evapporate is the primary interface to setting up new skels # and generating data. mkdir -p $PREFIX/bin ln -s $PREFIX/share/evapporate/scripts/evapporate.sh $PREFIX/bin/evapporate