Commit 884d101e authored by gijs's avatar gijs

Started on plotter implementation

parent 4163c10c
#! /bin/bash
if [ "$#" -gt 0 ]; then
eps=${1}
base=$(basename ${eps} .eps)
dirty="${base}.dirty.hpgl"
clean="${base}.hpgl"
pstoedit -f plot-hpgl "${eps}" "${dirty}"
# Clean HPGL
./hpgl-distiller -i "${dirty}" -o "${clean}"
rm "${dirty}"
else
echo "Usage: eps2hpgl.sh [epsfile]"
echo "Converts eps file to hpgl description"
fi
\ No newline at end of file
#! /bin/bash
if [ "$#" -gt 0 ]; then
folder=${1%/}
for eps in $folder/*.eps; do
echo "Converting ${eps}"
bash eps2hpgl.sh $eps
done
else
echo "Usage: eps2hpgl.sh [folder]"
echo "Converts eps files in folder to hpgl"
fi
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment