Artifact b8f9ead8c53b0f57dfe0b1e9e31244eab6976748e62eafe5cf6d5d72e017a7e7:
- Executable file mtt/bin/trans/bg2eps — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 450) [annotate] [blame] [check-ins using] [more...]
- Executable file mttroot/mtt/bin/trans/bg2eps — part of check-in [75c1ec2585] at 2004-08-26 16:19:30 on branch origin/master — Converts dia and fig bond graphs to postscript format. (user: geraint@users.sourceforge.net, size: 450) [annotate] [blame] [check-ins using]
#! /bin/sh set +e # prevent dia errors from halting MTT sys=$1 rep=$2 ps=$3 eps=$4 dia_files=`ls ${sys}*_${rep}.dia 2>/dev/null | sed 's/\.dia$//'` fig_files=`ls ${sys}*_${rep}.fig 2>/dev/null | sed 's/\.fig$//'` for file in ${dia_files} do dia --export-to-format=eps ${file}.dia if [ "${ps}" != "eps" ] then mv ${file}.eps ${file}.${ps} fi done for file in ${fig_files} do fig2dev -L${eps} ${file}.fig > ${file}.${ps} done