#!/bin/sh EXTNAME="$1" function givup() { echo $* exit 1 } if test "$EXTNAME" = ""; then givup "usage: $0 extension-name" fi if test -d "$EXTNAME" ; then givup "Directory $EXTNAME already exists." fi echo "Creating directory" mkdir $EXTNAME || givup "Cannot create directory $EXTNAME" cd $EXTNAME chmod 755 . echo -n "Creating basic files:" echo -n " config.m4" cat >config.m4 <setup.stub <Makefile.am <.cvsignore <