#!/bin/bash ## make an erimp the one that is used for testing if [ $# -lt 1 ]; then echo 1>&2 "$0: I need an impna." exit 2 fi IMPNA=$1 if [ ! -d ~/ernad/style/$IMPNA ]; then echo 1>&2 "$0: I don't have style for $IMPNA." exit 2 fi ## set nitpo style cd ~/ernad/style rm nitpo ln -s $IMPNA nitpo cd ## copy config rm -f ~/etc/nitpo.ini cp -a ~/nitpo/contrib/etc/$IMPNA.ini ~/etc/nitpo.ini ## set profiles link rm ~/profiles ln -s ~/ernad/var/$IMPNA/nitpo/profiles/ profiles ## copy css make_css_file $IMPNA cd ~/ernad/opt/css rm local.css ln -s $IMPNA.css local.css echo 'done'