From f301b36e5799f295462ae31820e68a984b42e720 Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Mon, 9 Oct 2000 04:47:29 +0000 Subject: [PATCH] added files into CVS --- utils/findVars | 10 ++++++++++ utils/mkTarg | 20 ++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100755 utils/findVars create mode 100755 utils/mkTarg 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 ' $< > $@' -- 2.30.2