#!/bin/sh # First argument is the directory with all the .pfb files # Second argument is the map file to be created echo "Creating $2 from $1" cd "$1" pwd cat "$2" for i in * do name=`basename $i .pfb` echo "${name} TeX-${name} <${i}" >>"$2" done