From: Stephen L Johnson Date: Mon, 9 Oct 2000 04:47:29 +0000 (+0000) Subject: added files into CVS X-Git-Tag: spong-2_7_0-beta1~11 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f301b36e5799f295462ae31820e68a984b42e720;p=spong.git added files into CVS --- diff --git a/utils/findVars b/utils/findVars new file mode 100755 index 0000000..50ce2db --- /dev/null +++ b/utils/findVars @@ -0,0 +1,10 @@ +#!/bin/sh +SCRIPT=`basename $0` +die() { + echo "Usage: $SCRIPT FILE" + echo "$*" + exit 1 +} +[ $# -eq 1 ] || die "Found $# ARGS not 1" +[ -f $1 ] || die "No FILE $1" +grep "@@" $1 | sed -e 's/[^@]*@@//' -e 's/@@[^@]*//' | sort | uniq diff --git a/utils/mkTarg b/utils/mkTarg new file mode 100755 index 0000000..dfafaf0 --- /dev/null +++ b/utils/mkTarg @@ -0,0 +1,20 @@ +#!/bin/sh +SCRIPT=`basename $0` +die() { + echo "Usage: $SCRIPT NAME" + echo " where NAME.in is a file" + echo "$*" + exit 1 +} +set -e +[ $# -eq 1 ] || die "Found $# ARGS not 1" +NAME=$1 +shift +[ -f $NAME.in ] || die "No FILE $NAME.in" +echo "$NAME: $NAME.in" +echo ' sed -e \' +for var in `findVars $NAME.in` +do + echo ' "s%@@'$var'@@%$('$var')%g" \' +done +echo ' $< > $@'