Skip to content

Instantly share code, notes, and snippets.

@tama-sh
Created May 25, 2012 06:53
Show Gist options
  • Save tama-sh/2786260 to your computer and use it in GitHub Desktop.
Save tama-sh/2786260 to your computer and use it in GitHub Desktop.
#!/bin/sh
for file in "$@"; do
if test "${file##*.}" = "svg" -a \( ! -e "${file%.svg}.eps" -o "$file" -nt "${file%.svg}.eps" \)
then
inkscape "$file" -E "${file%.svg}.eps"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment