summaryrefslogtreecommitdiff
path: root/Master/bin
diff options
context:
space:
mode:
authorSiep Kroonenberg <siepo@cybercomm.nl>2008-07-04 10:17:06 +0000
committerSiep Kroonenberg <siepo@cybercomm.nl>2008-07-04 10:17:06 +0000
commit4a697a53a3c9c2795d549c7d5eb7a6c88c7911a9 (patch)
treeb2f5967ce6865b615213754aa2aa3d41574502bc /Master/bin
parentcdbc5d3bd4d89338a033d47d1368e8e30d273544 (diff)
Added: epspdf conversion utility
git-svn-id: svn://tug.org/texlive/trunk@9222 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin')
l---------Master/bin/alpha-linux/epspdf1
l---------Master/bin/alpha-linux/epspdftk1
l---------Master/bin/amd64-freebsd/epspdf1
l---------Master/bin/amd64-freebsd/epspdftk1
l---------Master/bin/hppa-hpux/epspdf1
l---------Master/bin/hppa-hpux/epspdftk1
l---------Master/bin/i386-darwin/epspdf1
l---------Master/bin/i386-darwin/epspdftk1
l---------Master/bin/i386-freebsd/epspdf1
l---------Master/bin/i386-freebsd/epspdftk1
l---------Master/bin/i386-linux/epspdf1
l---------Master/bin/i386-linux/epspdftk1
l---------Master/bin/i386-openbsd/epspdf1
l---------Master/bin/i386-openbsd/epspdftk1
l---------Master/bin/i386-solaris/epspdf1
l---------Master/bin/i386-solaris/epspdftk1
l---------Master/bin/mips-irix/epspdf1
l---------Master/bin/mips-irix/epspdftk1
l---------Master/bin/powerpc-aix/epspdf1
l---------Master/bin/powerpc-aix/epspdftk1
l---------Master/bin/powerpc-darwin/epspdf1
l---------Master/bin/powerpc-darwin/epspdftk1
l---------Master/bin/powerpc-linux/epspdf1
l---------Master/bin/powerpc-linux/epspdftk1
l---------Master/bin/sparc-linux/epspdf1
l---------Master/bin/sparc-linux/epspdftk1
l---------Master/bin/sparc-solaris/epspdf1
l---------Master/bin/sparc-solaris/epspdftk1
-rwxr-xr-xMaster/bin/win32/epspdf.bat11
-rwxr-xr-xMaster/bin/win32/epspdf.texlua51
-rwxr-xr-xMaster/bin/win32/epspdftk.bat11
l---------Master/bin/x86_64-linux/epspdf1
l---------Master/bin/x86_64-linux/epspdftk1
33 files changed, 103 insertions, 0 deletions
diff --git a/Master/bin/alpha-linux/epspdf b/Master/bin/alpha-linux/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/alpha-linux/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/alpha-linux/epspdftk b/Master/bin/alpha-linux/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/alpha-linux/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/epspdf b/Master/bin/amd64-freebsd/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/amd64-freebsd/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/epspdftk b/Master/bin/amd64-freebsd/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/amd64-freebsd/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/hppa-hpux/epspdf b/Master/bin/hppa-hpux/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/hppa-hpux/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/hppa-hpux/epspdftk b/Master/bin/hppa-hpux/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/hppa-hpux/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/i386-darwin/epspdf b/Master/bin/i386-darwin/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/i386-darwin/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/i386-darwin/epspdftk b/Master/bin/i386-darwin/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/i386-darwin/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/epspdf b/Master/bin/i386-freebsd/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/i386-freebsd/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/epspdftk b/Master/bin/i386-freebsd/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/i386-freebsd/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/i386-linux/epspdf b/Master/bin/i386-linux/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/i386-linux/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/i386-linux/epspdftk b/Master/bin/i386-linux/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/i386-linux/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/i386-openbsd/epspdf b/Master/bin/i386-openbsd/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/i386-openbsd/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/i386-openbsd/epspdftk b/Master/bin/i386-openbsd/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/i386-openbsd/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/i386-solaris/epspdf b/Master/bin/i386-solaris/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/i386-solaris/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/i386-solaris/epspdftk b/Master/bin/i386-solaris/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/i386-solaris/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/mips-irix/epspdf b/Master/bin/mips-irix/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/mips-irix/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/mips-irix/epspdftk b/Master/bin/mips-irix/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/mips-irix/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/epspdf b/Master/bin/powerpc-aix/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/powerpc-aix/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/epspdftk b/Master/bin/powerpc-aix/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/powerpc-aix/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/powerpc-darwin/epspdf b/Master/bin/powerpc-darwin/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/powerpc-darwin/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/powerpc-darwin/epspdftk b/Master/bin/powerpc-darwin/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/powerpc-darwin/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/epspdf b/Master/bin/powerpc-linux/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/powerpc-linux/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/epspdftk b/Master/bin/powerpc-linux/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/powerpc-linux/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/sparc-linux/epspdf b/Master/bin/sparc-linux/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/sparc-linux/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/sparc-linux/epspdftk b/Master/bin/sparc-linux/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/sparc-linux/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/epspdf b/Master/bin/sparc-solaris/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/sparc-solaris/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/epspdftk b/Master/bin/sparc-solaris/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/sparc-solaris/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file
diff --git a/Master/bin/win32/epspdf.bat b/Master/bin/win32/epspdf.bat
new file mode 100755
index 00000000000..b203b576c3e
--- /dev/null
+++ b/Master/bin/win32/epspdf.bat
@@ -0,0 +1,11 @@
+@echo off
+ruby -v >nul 2>&1
+if not errorlevel 1 goto doit
+echo Ruby not found. Install Ruby,
+echo get the Ruby-included version or use epstopdf.
+goto :EOF
+:doit
+setlocal
+set ownpath=%~dp0%
+texlua "%ownpath%epspdf.texlua" "%~dpn0" %*
+endlocal
diff --git a/Master/bin/win32/epspdf.texlua b/Master/bin/win32/epspdf.texlua
new file mode 100755
index 00000000000..b31efa964d7
--- /dev/null
+++ b/Master/bin/win32/epspdf.texlua
@@ -0,0 +1,51 @@
+#! /usr/bin/env texlua
+
+function fixwin(args_unix)
+ if os.type == 'windows' then
+ local args_win={} -- new table
+ args_win[0]=args_unix[1]
+ for i=1, #args_unix do
+ args_win[i]='"'..args_unix[i]..'"'
+ end
+ return args_win
+ else
+ return args_unix
+ end
+end
+
+if string.find(arg[0], '/') then -- UNIX path
+ basename = select(1, string.gsub(arg[1], '.*/', ''))
+elseif string.find(arg[0], '\\') then -- Windows path
+ basename = select(1, string.gsub(arg[1], '.*\\', ''))
+ -- we might have \ and / mixed together ...
+ basename = select(1, string.gsub(basename, '.*/', ''))
+else -- no path
+ basename = arg[1]
+end
+
+kpse.set_program_name(basename..".bat", basename)
+TLROOT=kpse.var_value('SELFAUTOPARENT')
+BINDIR=kpse.var_value('SELFAUTOLOC')
+
+os.setenv('PATH', TLROOT..'/tlpkg/tlgs/bin;'..os.getenv('PATH'))
+os.setenv('GS_LIB', TLROOT..'/tlpkg/tlgs/lib;'..TLROOT..'/tlpkg/tlgs/fonts')
+os.setenv('TLROOT', TLROOT)
+
+script=kpse.find_file(basename..'.rb', 'texmfscripts')
+command={'ruby.exe', script}
+
+for i=2, #arg do
+ command[#command+1]=arg[i]
+end
+
+command=fixwin(command)
+
+--[[ Prepend an additional hyphen to activate this code.
+for i=0, #command do
+ print (command[i])
+end
+os.exit(ret)
+--]]
+
+ret=os.spawn(command)
+os.exit(ret)
diff --git a/Master/bin/win32/epspdftk.bat b/Master/bin/win32/epspdftk.bat
new file mode 100755
index 00000000000..d688da08ffc
--- /dev/null
+++ b/Master/bin/win32/epspdftk.bat
@@ -0,0 +1,11 @@
+@echo off
+ruby -v >nul 2>&1
+if not errorlevel 1 goto doit
+echo Ruby not found. Install Ruby and Tcl,
+echo get the Ruby-included version or use epstopdf.
+goto :EOF
+:doit
+setlocal
+set ownpath=%~dp0%
+texlua "%ownpath%epspdf.texlua" "%~dpn0" %*
+endlocal
diff --git a/Master/bin/x86_64-linux/epspdf b/Master/bin/x86_64-linux/epspdf
new file mode 120000
index 00000000000..0195c700955
--- /dev/null
+++ b/Master/bin/x86_64-linux/epspdf
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdf \ No newline at end of file
diff --git a/Master/bin/x86_64-linux/epspdftk b/Master/bin/x86_64-linux/epspdftk
new file mode 120000
index 00000000000..ef9d117fd47
--- /dev/null
+++ b/Master/bin/x86_64-linux/epspdftk
@@ -0,0 +1 @@
+../../texmf-dist/scripts/epspdf/epspdftk \ No newline at end of file