mk.sh 184 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 #!/bin/bash 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