1#!/bin/sh 2# 3# This program takes a shell script and configures for the following 4# variables: @DIR@ 5# @AWK@ 6# @SED@ 7# 8# Usage: config_script <filename> [<dir>] [<awk>] [<sed>] 9# 10 11FILE=$1 12DIR=$2 13AWK=$3 14SED=$4 15 16if test "${AWK}x" = "x" ; then 17 AWK=awk 18fi 19if test "${SED}x" = "x" ; then 20 SED=sed 21fi 22sed -e "s;@DIR@;${DIR};" -e "s;@AWK@;${AWK};" -e "s;@SED@;${SED};" $FILE 23