diff options
author | Werner Lemberg <wl@gnu.org> | 2014-10-26 20:08:01 +0100 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2014-10-26 20:08:01 +0100 |
commit | cbd37b446c0e5f905a31d48305b69ea14c83c069 (patch) | |
tree | d4cdca04764db18ebc57b73152e918e419b4b765 /arch | |
parent | fe33a2736386146c79da3b9dec507d2dfc2a6927 (diff) | |
download | groff-git-cbd37b446c0e5f905a31d48305b69ea14c83c069.tar.gz |
Add Windows `.cmd' wrapper files.
* arch/mingw/*: New files, provided by Eli.
* Makefile.in (make_winscripts, make_install_winscripts,
make_uninstall_winscripts): New target variables.
(MDEFINES): Add them.
(OTHERDIRS): Add `arch/mingw'.
* m4/groff.m4 (GROFF_CMD_FILES): New macro
* configure.ac: Call it.
* configure: Regenerated.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mingw/Makefile.sub | 66 | ||||
-rw-r--r-- | arch/mingw/afmtodit.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/chem.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/gperl.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/gpinyin.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/grap2graph.cmd | 86 | ||||
-rw-r--r-- | arch/mingw/groffer.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/grog.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/gropdf.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/mmroff.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/neqn.cmd | 6 | ||||
-rw-r--r-- | arch/mingw/pdfmom.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/roff2dvi.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/roff2html.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/roff2pdf.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/roff2ps.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/roff2text.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/roff2x.cmd | 2 | ||||
-rw-r--r-- | arch/mingw/zzz | 17 |
19 files changed, 205 insertions, 0 deletions
diff --git a/arch/mingw/Makefile.sub b/arch/mingw/Makefile.sub new file mode 100644 index 000000000..4c1e95768 --- /dev/null +++ b/arch/mingw/Makefile.sub @@ -0,0 +1,66 @@ +# Copyright (C) 2014 +# 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/>. +# +# Makefile.sub +# +WINSCRIPTS=\ + afmtodit.cmd \ + chem.cmd \ + gperl.cmd \ + gpinyin.cmd \ + grap2graph.cmd \ + groffer.cmd \ + grog.cmd \ + gropdf.cmd \ + mmroff.cmd \ + neqn.cmd \ + pdfmom.cmd \ + roff2dvi.cmd \ + roff2html.cmd \ + roff2pdf.cmd \ + roff2ps.cmd \ + roff2text.cmd \ + roff2x.cmd + +RM=rm -f + +all: $(make_winscripts) +install_data: $(make_install_winscripts) +uninstall_sub: $(make_uninstall_winscripts) + +winscripts: $(WINSCRIPTS) + +install_winscripts: $(WINSCRIPTS) + -test -d $(DESTDIR)$(bindir) || $(mkinstalldirs) $(DESTDIR)$(bindir) + for f in $(WINSCRIPTS); do \ + $(RM) $(DESTDIR)$(bindir)/$$f; \ + $(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(bindir)/$$f; \ + done + +uninstall_winscripts: + -for f in $(WINSCRIPTS); do \ + $(RM) $(DESTDIR)$(bindir)/$$f; \ + done + +######################################################################## +# Emacs settings +######################################################################## +# +# Local Variables: +# mode: makefile +# End: diff --git a/arch/mingw/afmtodit.cmd b/arch/mingw/afmtodit.cmd new file mode 100644 index 000000000..36012ed6f --- /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 000000000..3fb18d437 --- /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 000000000..3fb18d437 --- /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 000000000..3fb18d437 --- /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 000000000..84f408583 --- /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.22.3
+goto end
+
+:usage
+echo usage: grap2graph ^[ option ...^] ^< in ^> out
+echo.
+
+:end
+endlocal
diff --git a/arch/mingw/groffer.cmd b/arch/mingw/groffer.cmd new file mode 100644 index 000000000..3fb18d437 --- /dev/null +++ b/arch/mingw/groffer.cmd @@ -0,0 +1,2 @@ +@echo off
+perl %~dpn0 %*
diff --git a/arch/mingw/grog.cmd b/arch/mingw/grog.cmd new file mode 100644 index 000000000..3fb18d437 --- /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 000000000..36012ed6f --- /dev/null +++ b/arch/mingw/gropdf.cmd @@ -0,0 +1,2 @@ +@echo off
+perl -w %~dpn0 %*
diff --git a/arch/mingw/mmroff.cmd b/arch/mingw/mmroff.cmd new file mode 100644 index 000000000..3fb18d437 --- /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 000000000..d50169284 --- /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 000000000..36012ed6f --- /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 000000000..3fb18d437 --- /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 000000000..3fb18d437 --- /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 000000000..3fb18d437 --- /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 000000000..3fb18d437 --- /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 000000000..3fb18d437 --- /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 000000000..3fb18d437 --- /dev/null +++ b/arch/mingw/roff2x.cmd @@ -0,0 +1,2 @@ +@echo off
+perl %~dpn0 %*
diff --git a/arch/mingw/zzz b/arch/mingw/zzz new file mode 100644 index 000000000..f6c6f3c5f --- /dev/null +++ b/arch/mingw/zzz @@ -0,0 +1,17 @@ +afmtodit.cmd +chem.cmd +gperl.cmd +gpinyin.cmd +grap2graph.cmd +groffer.cmd +grog.cmd +gropdf.cmd +mmroff.cmd +neqn.cmd +pdfmom.cmd +roff2dvi.cmd +roff2html.cmd +roff2pdf.cmd +roff2ps.cmd +roff2text.cmd +roff2x.cmd |