#!/bin/sh # conf2env.sh # convert config to envdir # wcm, 2004.01.21 - 2004.01.22 # === # usage: # # conf2env envdir # ENVDIR=$1 usage(){ cat < STDERR } } } values[key] = value system("rm -f "envdir"/"key) if(system("echo "value" > "envdir"/"key)){ print "Unexpected error: WRITE ERROR:" $0 > STDERR } } else { print "Unexpected error: EXCESS FIELDS:" $0 > STDERR } } ' ## ## all done: exit 0 ### that's all, folks!