Code

get the CORRECT Sodipodi namespace in there
[inkscape.git] / share / extensions / dia2svg.sh
1 #! /bin/sh
3 rc=0
5 # dia version 0.93 (the only version I've tested) allows `--export=-', but then
6 # ruins it by writing other cruft to stdout.  So we'll have to use a temp file.
7 TMPDIR="${TMPDIR-/tmp}"
8 TEMPFILENAME=`mktemp 2>/dev/null || echo "$TMPDIR/tmpdia$$.svg"`
9 dia -n --export="${TEMPFILENAME}" --export-to-format=svg "$1" > /dev/null 2>&1 || rc=1
11 cat < "${TEMPFILENAME}" || rc=1
12 rm -f "${TEMPFILENAME}"
13 exit $rc