#! /bin/sh

#*
# Run 'sed' replacement script on an SVG file
#
# USAGE:
#    $0 translate.sed CPU.dia CPU_lt.dia
#**

set -ue

if [ $# -ne 3 ]
then
    echo "$0: need a sed script file, a name of the input file and the output file on the command line" >&2
    if type -p usage > /dev/null 2>&1; then usage $0; fi
    exit 1;
fi

cat "$2" | sed -f "$1"  > "$3"
