From ccbbe046f0efb2c9a63e78d307f2c1b96c1c3e64 Mon Sep 17 00:00:00 2001 From: etobi Date: Tue, 3 Nov 2009 22:04:11 +0100 Subject: added tools --- tools/newclass | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 tools/newclass (limited to 'tools/newclass') diff --git a/tools/newclass b/tools/newclass new file mode 100755 index 0000000..8831b73 --- /dev/null +++ b/tools/newclass @@ -0,0 +1,31 @@ +#!/bin/sh + +class=$1 +lowerclass=`echo $class | tr [:upper:] [:lower:]` +upperclass=`echo $class | tr [:lower:] [:upper:]` +headerfile="${lowerclass}.h" +ccfile="$lowerclass".cc + +cp `dirname $0`/sourcefileheader.txt $headerfile + +cat >> $headerfile <> $ccfile <