Code

remove unused
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 14 Jun 2008 04:37:47 +0000 (04:37 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 14 Jun 2008 04:37:47 +0000 (04:37 +0000)
share/extensions/Makefile.am
share/extensions/pdf_output.inx.txt [deleted file]
share/extensions/pdf_output_via_gs_on_win32.inx.txt [deleted file]
share/extensions/ps2pdf.cmd [deleted file]
share/extensions/ps2pdf.sh [deleted file]

index 909327cc9f4c6c7c0eedbcd49bbc337f27854332..92a52847cf32ed4d84df65084a4bcbc4ea7f9f4b 100644 (file)
@@ -78,8 +78,6 @@ extensions = \
        polyhedron_3d.py \
        ps2dxf.sh \
        ps2epsi.sh \
-       ps2pdf.cmd \
-       ps2pdf.sh \
        ps2pdf-ext.py \
        pturtle.py \
        radiusrand.py \
@@ -188,8 +186,6 @@ modules = \
        outline2svg.inx \
        pathalongpath.inx\
        pathscatter.inx\
-       pdf_output.inx.txt \
-       pdf_output_via_gs_on_win32.inx.txt \
        perfectboundcover.inx \
        perspective.inx \
        polyhedron_3d.inx       \
diff --git a/share/extensions/pdf_output.inx.txt b/share/extensions/pdf_output.inx.txt
deleted file mode 100644 (file)
index 3e2b4f4..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<inkscape-extension>
-    <_name>PDF Output</_name>
-    <id>org.inkscape.output.pdf.via_gs</id>
-    <dependency type="extension">org.inkscape.output.ps</dependency>
-    <dependency type="executable" location="extensions">ps2pdf.sh</dependency>
-    <dependency type="executable">ps2pdf</dependency>
-    <output>
-        <extension>.pdf</extension>
-        <mimetype>image/x-portable-document-format</mimetype>
-        <_filetypename>Adobe PDF via postscript (*.pdf)</_filetypename>
-        <_filetypetooltip>Adobe Portable Document Format</_filetypetooltip>
-    </output>
-    <script>
-        <command reldir="extensions">ps2pdf.sh</command>
-        <helper_extension>org.inkscape.output.ps</helper_extension>
-    </script>
-</inkscape-extension>
diff --git a/share/extensions/pdf_output_via_gs_on_win32.inx.txt b/share/extensions/pdf_output_via_gs_on_win32.inx.txt
deleted file mode 100644 (file)
index ae10a04..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<!--
-This requires ghostscript in order to work, but there isn't yet
-a suitable way to test for ghostscript's presence.
-
-TODO: add this file and ps2pdf.cmd to the makefile once this is fixed so 
-that they get into the tarball
--->
-<inkscape-extension>
-    <_name>PDF Output</_name>
-    <id>org.inkscape.output.pdf.via_gs_on_win32</id>
-    <dependency type="extension">org.inkscape.output.ps</dependency>
-    <dependency type="executable" location="extensions">ps2pdf.cmd</dependency>
-    <dependency type="executable" location="path">cmd.exe</dependency>
-    <output>
-        <extension>.pdf</extension>
-        <mimetype>image/x-portable-document-format</mimetype>
-        <_filetypename>Adobe PDF via postscript (*.pdf)</_filetypename>
-        <_filetypetooltip>Adobe Portable Document Format</_filetypetooltip>
-    </output>
-    <script>
-        <command reldir="extensions">ps2pdf.cmd</command>
-        <helper_extension>org.inkscape.output.ps</helper_extension>
-    </script>
-</inkscape-extension>
diff --git a/share/extensions/ps2pdf.cmd b/share/extensions/ps2pdf.cmd
deleted file mode 100644 (file)
index 81e8ba8..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-REM BEGIN
-@echo off
-REM edit %GSDIR% to match the ghostscript installation directory
-set GSDIR=%PROGRAMFILES%\gs\gs8.51
-set GSBINDIR=%GSDIR%\bin
-set GSLIBDIR=%GSDIR%\lib
-set PATH=%GSBINDIR%;%GSLIBDIR%;%PATH%
-echo %PATH%
-ps2pdf.bat %1 -
-REM END
\ No newline at end of file
diff --git a/share/extensions/ps2pdf.sh b/share/extensions/ps2pdf.sh
deleted file mode 100755 (executable)
index 61b6dd1..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-params=`grep "^%%DocumentMedia:" "$1" | head -n 1 | awk '{  if (NF==7) { if ($2!="plain") print "-sPAPERSIZE=" $2; else print "-dDEVICEWIDTHPOINTS=" $3 " -dDEVICEHEIGHTPOINTS=" $4; } }'`
-
-if [ "x${params}x" = "xx" ]
-then
-        params=`grep "^%%BoundingBox:" "$1" | head -n 1 | awk '{ print "-dDEVICEWIDTHPOINTS=" $4 " -dDEVICEHEIGHTPOINTS=" $5; }'`
-fi
-
-exec ps2pdf $params "$1" - 2> /dev/null