#!/bin/csh -f

if ($#argv < 1) then
        echo Usage: makeClass class-name
        exit
endif

test -f dms/$1.h
if ($status == 0) then
    echo dms/$1.h already exists - aborting
    exit
endif

test -f $1.cpp
if ($status == 0) then
    echo $1.cpp already exists - aborting
    exit
endif


sed s/className/$1/g > dms/$1.h << ENDHEADER
#ifndef _dmsclassName_h_
#define _dmsclassName_h_

#include <GL/gl.h>

namespace dms
{

class className
    {
    public:
        className(void);
    private:
    };

}

#endif
ENDHEADER


sed s/className/$1/g > $1.cpp << ENDCODE
#include "dms/className.h"

namespace dms
{

className::className(void)
    {
    }

}
ENDCODE

