#! /bin/sh # Fix < and > signs and replace bugnumbers in the file given # (ChangeLog) with links to Redmine issues. if [ $# -ne 1 ] ; then echo Usage: buglinks.sh ChangeLog exit 1 fi file=$1 sed -e 's/\&/\&/g' -e 's//\>/g' $file > $file.tmp mv $file.tmp $file sed -e 's,\#\([1-9][0-9][0-9]\),#\1,g; s,\([0-9][0-9][0-9][0-9][0-9][0-9][0-9]\),\1,g' $file > $file.tmp mv $file.tmp $file