#!/bin/sh
## Copyright, 2001, Astra Network Inc.  All Rights Reserved

## This source code has been published by Astra Network Inc. However, any
## use, reproduction, modification, distribution or transfer of this
## software, or any software which includes or is based upon any of this
## code, is only permitted if expressly authorized by a written license
## agreement from Astra. Contact your Astra representitive directly for
## more information.

[ -d mod_$1 ] || mkdir mod_$1
cp -R mod_template/* mod_$1
cd mod_$1
find ./ -type f | xargs perl -pi.bak -e 's/%%module%%/'"$1"'/g'

rm *.bak test/*.bak
rm -R CVS test/CVS

mv template.c $1.c
mv template.h $1.h
mv template.meta $1.meta
mv template_proto.h $1_proto.h

