#!/bin/bash
mkdir -p `dirname $1`
cp boilerplate.h.in $1.h
U=`echo $1 | tr '[:lower:]' '[:upper:]' | sed -s 's%/%_%g'`
sed -i -s "s#\$UN#$U#" $1.h
cp boilerplate.cpp.in $1.cpp
sed -i -s "s#\$LN#$1#" $1.cpp
