#!/bin/sh # Module template builder; just pass it a list of names # Process every commandline parameter while [ "${1}" != "" ] do # Strip trailing /'s while [ "${1: -1}" == "/" ] do set 1 ${1:0:$[${#1} - 1]} done # Create the directory if needed [ -d ${1} ] || mkdir ${1} # Create the module.tcl file cat > ${1}/module.tcl <