#!/bin/sh license_file=1Part/DanielByLDCO/OFL.txt copyright_prefix="Copyright (c)" rfn_prefix="with Reserved Font Name" # FIXME: replacing '' with 2016. Correct for up to part 3 for dir in ?Part/*; do dirname=${dir##*/} name=${dirname%FontByLDCO} lic_file="$dir/OFL.txt" # Note the extra space left at the beginning: copyright=`grep "^$copyright_prefix" "$lic_file" | \ sed -e "s/^$copyright_prefix//" -e 's//<2016>/' -e 's/\r$//'` rfns=`grep "^$rfn_prefix" "$lic_file" | sed -e 's/^/ /' -e 's/\r$//'` cat <