summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorTakuji Tanaka <ttk@t-lab.opal.ne.jp>2022-09-02 14:16:26 +0000
committerTakuji Tanaka <ttk@t-lab.opal.ne.jp>2022-09-02 14:16:26 +0000
commite062abaa75e239dd844174e911c1d303750f1123 (patch)
treeb02511706f57313813f851e795b6a7312c695797 /Build/source
parent24e37b600d50cb0be4df91fc4d4ab627f9e5fe8e (diff)
dvips: tweak
git-svn-id: svn://tug.org/texlive/trunk@64267 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/dvipsk/dvips.c58
1 files changed, 28 insertions, 30 deletions
diff --git a/Build/source/texk/dvipsk/dvips.c b/Build/source/texk/dvipsk/dvips.c
index 1251c9cd11c..34c7d17d377 100644
--- a/Build/source/texk/dvipsk/dvips.c
+++ b/Build/source/texk/dvipsk/dvips.c
@@ -630,6 +630,34 @@ main(int argc, char **argv)
setrlimit(RLIMIT_STACK, &rl);
#endif
#ifdef KPATHSEA
+ if (argc > 1) {
+ if (argc == 2 && strncmp(argv[1], "-?", 2) == 0) {
+ printf("%s %s\n", banner, banner2);
+ help(0);
+ exit(0);
+ }
+ if (argc == 2 && strncmp(argv[1], "-v", 2) == 0) {
+ printf("%s %s\n", banner, banner2);
+ exit(0);
+ }
+ /* print information and exit if dvips finds options --help or --version */
+ if (strlen(argv[1]) == 6 && strcmp(argv[1], "--help") == 0) {
+ help (0);
+ exit (0);
+ }
+ if (strlen (argv[1]) == 9 && strcmp(argv[1], "--version") == 0) {
+ puts (BANNER);
+ puts (kpathsea_version_string);
+ puts ("Copyright 2022 Radical Eye Software.\n\
+There is NO warranty. You may redistribute this software\n\
+under the terms of the GNU General Public License\n\
+and the Dvips copyright.\n\
+For more information about these matters, see the files\n\
+named COPYING and dvips.h.\n\
+Primary author of Dvips: T. Rokicki.");
+ exit (0);
+ }
+ }
kpse_set_program_name (argv[0], "dvips");
kpse_set_program_enabled (kpse_pk_format, MAKE_TEX_PK_BY_DEFAULT, kpse_src_compile);
#ifdef WIN32
@@ -682,36 +710,6 @@ main(int argc, char **argv)
if (dd(D_SEARCH)) KPSE_DEBUG_SET (KPSE_DEBUG_SEARCH);
#endif /* KPATHSEA && KPSE_DEBUG */
#endif /* DEBUG */
-#ifdef KPATHSEA
- if (argc > 1) {
- if (argc == 2 && strncmp(argv[1], "-?", 2) == 0) {
- printf("%s %s\n", banner, banner2);
- help(0);
- exit(0);
- }
- if (argc == 2 && strncmp(argv[1], "-v", 2) == 0) {
- printf("%s %s\n", banner, banner2);
- exit(0);
- }
- /* print information and exit if dvips finds options --help or --version */
- if (strlen(argv[1]) == 6 && strcmp(argv[1], "--help") == 0) {
- help (0);
- exit (0);
- }
- if (strlen (argv[1]) == 9 && strcmp(argv[1], "--version") == 0) {
- puts (BANNER);
- puts (kpathsea_version_string);
- puts ("Copyright 2022 Radical Eye Software.\n\
-There is NO warranty. You may redistribute this software\n\
-under the terms of the GNU General Public License\n\
-and the Dvips copyright.\n\
-For more information about these matters, see the files\n\
-named COPYING and dvips.h.\n\
-Primary author of Dvips: T. Rokicki.");
- exit (0);
- }
- }
-#endif /* KPATHSEA */
#endif /* VMS */
dvips_debug_flag = 0;
{ /* for compilers incompatible with c99 */