summaryrefslogtreecommitdiffstats
path: root/arch/mingw
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:44:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:44:05 +0000
commitd318611dd6f23fcfedd50e9b9e24620b102ba96a (patch)
tree8b9eef82ca40fdd5a8deeabf07572074c236095d /arch/mingw
parentInitial commit. (diff)
downloadgroff-d318611dd6f23fcfedd50e9b9e24620b102ba96a.tar.xz
groff-d318611dd6f23fcfedd50e9b9e24620b102ba96a.zip
Adding upstream version 1.23.0.upstream/1.23.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--arch/mingw/afmtodit.cmd2
-rw-r--r--arch/mingw/chem.cmd2
-rw-r--r--arch/mingw/gperl.cmd2
-rw-r--r--arch/mingw/gpinyin.cmd2
-rw-r--r--arch/mingw/grap2graph.cmd86
-rw-r--r--arch/mingw/grog.cmd2
-rw-r--r--arch/mingw/gropdf.cmd2
-rw-r--r--arch/mingw/mingw.am49
-rw-r--r--arch/mingw/mmroff.cmd2
-rw-r--r--arch/mingw/neqn.cmd6
-rw-r--r--arch/mingw/pdfmom.cmd2
-rw-r--r--arch/mingw/roff2dvi.cmd2
-rw-r--r--arch/mingw/roff2html.cmd2
-rw-r--r--arch/mingw/roff2pdf.cmd2
-rw-r--r--arch/mingw/roff2ps.cmd2
-rw-r--r--arch/mingw/roff2text.cmd2
-rw-r--r--arch/mingw/roff2x.cmd2
17 files changed, 169 insertions, 0 deletions
diff --git a/arch/mingw/afmtodit.cmd b/arch/mingw/afmtodit.cmd
new file mode 100644
index 0000000..36012ed
--- /dev/null
+++ b/arch/mingw/afmtodit.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl -w %~dpn0 %*
diff --git a/arch/mingw/chem.cmd b/arch/mingw/chem.cmd
new file mode 100644
index 0000000..3fb18d4
--- /dev/null
+++ b/arch/mingw/chem.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl %~dpn0 %*
diff --git a/arch/mingw/gperl.cmd b/arch/mingw/gperl.cmd
new file mode 100644
index 0000000..3fb18d4
--- /dev/null
+++ b/arch/mingw/gperl.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl %~dpn0 %*
diff --git a/arch/mingw/gpinyin.cmd b/arch/mingw/gpinyin.cmd
new file mode 100644
index 0000000..3fb18d4
--- /dev/null
+++ b/arch/mingw/gpinyin.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl %~dpn0 %*
diff --git a/arch/mingw/grap2graph.cmd b/arch/mingw/grap2graph.cmd
new file mode 100644
index 0000000..5ee9e5a
--- /dev/null
+++ b/arch/mingw/grap2graph.cmd
@@ -0,0 +1,86 @@
+@echo off
+REM grap2graph -- compile graph description descriptions to bitmap images
+REM
+REM by Eli Zaretskii <eliz@gnu.org>, translation of a Unix shell
+REM script written by Eric S. Raymond <esr@thyrsus.com>, May 2003
+REM
+REM In Unixland, the magic is in knowing what to string together...
+REM
+REM Take grap description on stdin, emit cropped bitmap on stdout.
+REM The pic markup should *not* be wrapped in .G1/.G2, this script will do that.
+REM A -U option on the command line enables gpic/groff "unsafe" mode.
+REM A -format FOO option changes the image output format to any format
+REM supported by convert(1). All other options are passed to convert(1).
+REM The default format is PNG.
+REM
+REM
+REM Requires the groff suite and the ImageMagick tools. Both are open source.
+REM This code is released to the public domain.
+REM
+REM Here are the assumptions behind the option processing:
+REM
+REM 1. None of the options of grap(1) are relevant.
+REM
+REM 2. Only the -U option of groff(1) is relevant.
+REM
+REM 3. Many options of convert(1) are potentially relevant, (especially
+REM -density, -interlace, -transparency, -border, and -comment).
+REM
+REM Thus, we pass -U to groff(1), and everything else to convert(1).
+REM
+setlocal
+set groff_opts=
+set convert_opts=
+set format=png
+
+:loop
+if "%1" == "" goto body
+if "%1" == "-v" goto version
+if "%1" == "--version" goto version
+if "%1" == "--help" goto usage
+if not "%1%" == "-unsafe" goto format
+set groff_opts=-U
+shift
+goto loop
+:format
+if not "%1" == "-format" goto convert
+set format=%2
+shift
+shift
+goto loop
+:convert
+set convert_opts=%convert_opts% %1
+shift
+goto loop
+
+:body
+REM echo %groff_opts% %convert_opts% %format%
+
+set rnd1=%RANDOM%
+set rnd2=%RANDOM%
+if "%GROFF_TMPDIR%" == "" goto deftmp
+set tdir=%GROFF_TMPDIR%\grap2graph-%rnd1%
+goto runpipe
+:deftmp
+sei tdir=%TEMP%\grap2graph-%rnd1%
+
+:runpipe
+mkdir %tdir%
+echo .G1 > %tdir%\wrap
+cat >> %tdir%\wrap
+echo .G2 >> %tdir%\wrap
+grap %tdir%\wrap | groff -p %groff_opts% -Tps -P-pletter | convert -trim -crop 0x0 %convert_opts% - %tdir%/grap2graph.%format%
+cat %tdir%/grap2graph.%format%
+rm -rf %tdir%
+goto end
+
+:version
+echo GNU grap2graph (groff) version 1.23.0
+goto end
+
+:usage
+echo usage: grap2graph ^[ option ...^] ^< in ^> out
+echo.
+
+:end
+endlocal
diff --git a/arch/mingw/grog.cmd b/arch/mingw/grog.cmd
new file mode 100644
index 0000000..3fb18d4
--- /dev/null
+++ b/arch/mingw/grog.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl %~dpn0 %*
diff --git a/arch/mingw/gropdf.cmd b/arch/mingw/gropdf.cmd
new file mode 100644
index 0000000..36012ed
--- /dev/null
+++ b/arch/mingw/gropdf.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl -w %~dpn0 %*
diff --git a/arch/mingw/mingw.am b/arch/mingw/mingw.am
new file mode 100644
index 0000000..4badf5a
--- /dev/null
+++ b/arch/mingw/mingw.am
@@ -0,0 +1,49 @@
+# Copyright (C) 2014-2020 Free Software Foundation, Inc.
+#
+# This file is part of groff.
+#
+# groff is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# groff is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# mingw.am
+#
+WINSCRIPTS=\
+ arch/mingw/afmtodit.cmd \
+ arch/mingw/chem.cmd \
+ arch/mingw/gperl.cmd \
+ arch/mingw/gpinyin.cmd \
+ arch/mingw/grap2graph.cmd \
+ arch/mingw/grog.cmd \
+ arch/mingw/gropdf.cmd \
+ arch/mingw/mmroff.cmd \
+ arch/mingw/neqn.cmd \
+ arch/mingw/pdfmom.cmd \
+ arch/mingw/roff2dvi.cmd \
+ arch/mingw/roff2html.cmd \
+ arch/mingw/roff2pdf.cmd \
+ arch/mingw/roff2ps.cmd \
+ arch/mingw/roff2text.cmd \
+ arch/mingw/roff2x.cmd
+
+if BUILD_WINSCRIPTS
+bin_SCRIPTS += $(WINSCRIPTS)
+else
+EXTRA_DIST += $(WINSCRIPTS)
+endif
+
+
+# Local Variables:
+# fill-column: 72
+# mode: makefile-automake
+# End:
+# vim: set autoindent filetype=automake textwidth=72:
diff --git a/arch/mingw/mmroff.cmd b/arch/mingw/mmroff.cmd
new file mode 100644
index 0000000..3fb18d4
--- /dev/null
+++ b/arch/mingw/mmroff.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl %~dpn0 %*
diff --git a/arch/mingw/neqn.cmd b/arch/mingw/neqn.cmd
new file mode 100644
index 0000000..d501692
--- /dev/null
+++ b/arch/mingw/neqn.cmd
@@ -0,0 +1,6 @@
+@echo off
+setlocal
+set Path=%~dp0;%Path%
+if not "%GROFF_BIN_PATH%" == "" set Path=%GROFF_BIN_PATH%;%Path%
+eqn -Tascii %*
+endlocal
diff --git a/arch/mingw/pdfmom.cmd b/arch/mingw/pdfmom.cmd
new file mode 100644
index 0000000..36012ed
--- /dev/null
+++ b/arch/mingw/pdfmom.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl -w %~dpn0 %*
diff --git a/arch/mingw/roff2dvi.cmd b/arch/mingw/roff2dvi.cmd
new file mode 100644
index 0000000..3fb18d4
--- /dev/null
+++ b/arch/mingw/roff2dvi.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl %~dpn0 %*
diff --git a/arch/mingw/roff2html.cmd b/arch/mingw/roff2html.cmd
new file mode 100644
index 0000000..3fb18d4
--- /dev/null
+++ b/arch/mingw/roff2html.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl %~dpn0 %*
diff --git a/arch/mingw/roff2pdf.cmd b/arch/mingw/roff2pdf.cmd
new file mode 100644
index 0000000..3fb18d4
--- /dev/null
+++ b/arch/mingw/roff2pdf.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl %~dpn0 %*
diff --git a/arch/mingw/roff2ps.cmd b/arch/mingw/roff2ps.cmd
new file mode 100644
index 0000000..3fb18d4
--- /dev/null
+++ b/arch/mingw/roff2ps.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl %~dpn0 %*
diff --git a/arch/mingw/roff2text.cmd b/arch/mingw/roff2text.cmd
new file mode 100644
index 0000000..3fb18d4
--- /dev/null
+++ b/arch/mingw/roff2text.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl %~dpn0 %*
diff --git a/arch/mingw/roff2x.cmd b/arch/mingw/roff2x.cmd
new file mode 100644
index 0000000..3fb18d4
--- /dev/null
+++ b/arch/mingw/roff2x.cmd
@@ -0,0 +1,2 @@
+@echo off
+perl %~dpn0 %*