cd $1 cp ../catalog . cp ../entityrc . rm $1new.sgm rm $1new.ent sed 's/DOCTYPE tei2 PUBLIC/doctype tei2 public/g' $1.sgm > $1new.sgm sed 's/.tif" NDATA tif/v.jpg" NDATA JFIF/' $1.ent > $1new.ent ../modsgml.pl $1