From: buliabyak Date: Thu, 23 Feb 2006 21:07:44 +0000 (+0000) Subject: add xfig import from patch 1436952 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f6b079ad6745d989c9199710fd570803b886cb74;p=inkscape.git add xfig import from patch 1436952 --- diff --git a/share/extensions/Makefile.am b/share/extensions/Makefile.am index 67d86bca8..475a41599 100644 --- a/share/extensions/Makefile.am +++ b/share/extensions/Makefile.am @@ -45,7 +45,9 @@ extensions = \ embedimage.py \ extractimage.py \ svg_and_media_zip_output.py \ - dxf_outlines.py + dxf_outlines.py \ + fig2svg.sh \ + fig_input.inx otherstuff = diff --git a/share/extensions/fig2svg.sh b/share/extensions/fig2svg.sh new file mode 100755 index 000000000..81c6bc827 --- /dev/null +++ b/share/extensions/fig2svg.sh @@ -0,0 +1,10 @@ +#! /bin/sh +rc=0 +TMPDIR="${TMPDIR-/tmp}" +TEMPFILENAME=`mktemp 2>/dev/null || echo "$TMPDIR/tmp-fig$$.svg"` + +fig2dev -L svg "$1" "${TEMPFILENAME}" > /dev/null 2>&1 || rc=1 + +cat < "${TEMPFILENAME}" || rc=1 +rm -f "${TEMPFILENAME}" +exit $rc diff --git a/share/extensions/fig_input.inx b/share/extensions/fig_input.inx new file mode 100644 index 000000000..afd76eee6 --- /dev/null +++ b/share/extensions/fig_input.inx @@ -0,0 +1,16 @@ + + <_name>XFIG Input + org.inkscape.input.fig + fig2dev + fig2svg.sh + + .fig + image/x-xfig + <_filetypename>XFIG Graphic File (*.fig) + <_filetypetooltip>Open files saved with XFIG + org.inkscape.output.fig + + +