#! /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