#!/bin/sh # # Remove copyright notice in type 1 font. # Groff complains when the length exceeds 255 characters. # [ $# -eq 0 ] && { echo "usage: fixfont font_file" >&2; exit 1; } [ -f "$1" ] || { echo "fixfont: Can't find file '$1'" >&2; exit 1; } tmpfile=$(mktemp ~/.fixfont.XXXXXX) || exit 1 sed '/^[ ]*\/Notice/d' "$1" >$tmpfile mv -f $tmpfile "$1" && chmod go+r "$1" rm -f $tmpfile .