#!/bin/sh # Creates .bt5 file from Business Template directory # Invoke: mkbt5 [bt_dir ...] # Produces: bt_dir-version.bt5 file for BT5DIR in $* ; do BT5DIR=`echo $BT5DIR | sed 's/\/$//g'` if [ -f $BT5DIR/bt/revision ] ; then btversion=`cat $BT5DIR/bt/version` tar --exclude=.svn -cf - $BT5DIR | gzip -c9 > $BT5DIR-${btversion}.bt5 else echo "$BT5DIR is not Business Template directory" fi done