#! /bin/sh set -e . ./install.cfg IFS= mkdir -p $DESTDIR$CONFDIR mkdir -p $DESTDIR$LOGDIR WEBINF=$DESTDIR$DATADIR/WEB-INF mkdir -p $WEBINF # Classes cp -r target/classes $WEBINF/ # External libraries mkdir -p $WEBINF/lib IFS=: for e in $CLASSPATH do ln -sf -- "$e" $WEBINF/lib/ done IFS= # File web.xml cp src/main/webapp/WEB-INF/web.xml $WEBINF/