Skip to content

Commit

Permalink
TL sync
Browse files Browse the repository at this point in the history
  • Loading branch information
edocevoli committed Apr 7, 2019
1 parent 3469575 commit 31734fd
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 55 deletions.
4 changes: 2 additions & 2 deletions Admin/TPM/windows-x64/miktex-dvipng-bin-x64.tpm.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<rdf:Description about="http://www.miktex.org/packages/miktex/">
<TPM:Name>Dvipng win64</TPM:Name>
<TPM:Title>DVI-to-PNG Converter, Windows x64</TPM:Title>
<TPM:Copyright owner="Jan-Åke Larsson" year="2002-2015"/>
<TPM:Copyright owner="Jan-Åke Larsson" year="2002-2019"/>
<TPM:License type="lgpl"/>
<TPM:Version>1.15</TPM:Version>
<TPM:Version>1.16</TPM:Version>
<TPM:TargetSystem>windows-x64</TPM:TargetSystem>
<TPM:Date>@MIKTEX_DATETIME_STR@</TPM:Date>
<TPM:Description>
Expand Down
4 changes: 2 additions & 2 deletions Admin/TPM/windows-x86/miktex-dvipng-bin.tpm.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<rdf:Description about="http://www.miktex.org/packages/miktex/">
<TPM:Name>Dvipng win32</TPM:Name>
<TPM:Title>DVI-to-PNG Converter, Windows x86</TPM:Title>
<TPM:Copyright owner="Jan-Åke Larsson" year="2002-2015"/>
<TPM:Copyright owner="Jan-Åke Larsson" year="2002-2019"/>
<TPM:License type="lgpl"/>
<TPM:Version>1.15</TPM:Version>
<TPM:Version>1.16</TPM:Version>
<TPM:TargetSystem>windows-x86</TPM:TargetSystem>
<TPM:Date>@MIKTEX_DATETIME_STR@</TPM:Date>
<TPM:Description>
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# MiKTeX Change Log

## 2.9.7000 - 2019-04-07
## 2.9.7000 - 2019-04-08

### Upgraded programs

* dvipdfmx 20190225
* dvipng 1.16
* dvips 5.999
* dvisvgm 2.6.3
* Gregorio 5.2.0
Expand Down
6 changes: 3 additions & 3 deletions Programs/DviWare/dvipng/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## CMakeLists.txt -*- CMake -*-
##
## Copyright (C) 2006-2017 Christian Schenk
## Copyright (C) 2006-2019 Christian Schenk
##
## This file is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
Expand Down Expand Up @@ -40,8 +40,8 @@ set(HAVE_LIBZ)
set(HAVE_PNG_H 1)

set(PACKAGE_NAME "dvipng")
set(PACKAGE_STRING "dvipng 1.15")
set(PACKAGE_VERSION "1.15")
set(PACKAGE_STRING "dvipng 1.16")
set(PACKAGE_VERSION "1.16")

configure_file(
config.h.cmake
Expand Down
6 changes: 2 additions & 4 deletions Programs/DviWare/dvipng/source/dvipng.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ int main(int argc, char ** argv)
kpse_set_program_enabled (kpse_pk_format, makeTexPK, kpse_src_compile);
#endif

#if !defined(MIKTEX)
#ifdef WIN32
texlive_gs_init ();
#endif
#ifdef HAVE_TEXLIVE_GS_INIT
texlive_gs_init();
#endif

initcolor();
Expand Down
69 changes: 27 additions & 42 deletions Programs/DviWare/dvipng/source/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,29 @@
License along with this program. If not, see
<http://www.gnu.org/licenses/>.
Copyright (C) 2002-2015 Jan-Åke Larsson
Copyright (C) 2002-2015, 2019 Jan-Åke Larsson
************************************************************************/

#include "dvipng.h"
#ifdef HAVE_LIBGEN_H
# include <libgen.h>
#else
#define basename xbasename
#endif
#include <fcntl.h> /* open/close */
#ifdef HAVE_MMAP
#include <sys/mman.h>
#endif
#include <sys/stat.h>

#if defined _WIN32 && !defined __CYGWIN__ && !defined __CYGWIN32__
/* Use Windows separators on all _WIN32 defining
environments, except Cygwin. */
# define DIR_SEPARATOR_CHAR '\\'
#endif
#ifndef DIR_SEPARATOR_CHAR
# define DIR_SEPARATOR_CHAR '/'
#endif /* !DIR_SEPARATOR_CHAR */

static char *programname;

/*-->DecodeArgs*/
Expand All @@ -47,43 +54,25 @@ bool DecodeArgs(int argc, char ** argv)
int32_t number; /* Temporary storage for numeric parameter */
char *dviname=NULL; /* Name of dvi file */
char *outname=NULL; /* Name of output file */
char *base; /* basename of argv[0] */

#ifdef HAVE_LIBKPATHSEA
/* we certainly don't want to modify argv[0]. */
programname = xstrdup (argv[0] ? argv[0] : PACKAGE_NAME);
# ifdef HAVE_KPSE_PROGRAM_BASENAME
base = kpse_program_basename (programname);
# else
base = xstrdup (xbasename (programname));
{
char *dot = strrchr (base, '.');
if (dot && FILESTRCASEEQ (dot, ".exe"))
*dot = 0;
}
# endif
#else
/* we certainly don't want to modify argv[0]. */
programname = strdup (argv[0] ? argv[0] : PACKAGE_NAME);
base = strrchr (programname, '/');
if (base)
base++;
else
base = programname;
#endif
programname=PACKAGE_NAME;
if (argv[0]) {
#ifdef HAVE_GDIMAGEGIF
# ifdef HAVE_LIBKPATHSEA
if (FILESTRCASEEQ (base, "dvigif"))
# else
if (strncmp(programname,"dvigif",6)==0)
# endif
option_flags |= GIF_OUTPUT;
programname=strrchr(argv[0],DIR_SEPARATOR_CHAR);
if (programname!=NULL)
programname++;
else
programname=argv[0];
if (strncasecmp(programname,"dvigif",6)==0)
option_flags |= GIF_OUTPUT;
#endif
programname=argv[0];
}
Message(BE_NONQUIET,"This is %s",programname);
if (strcmp(base,PACKAGE_NAME)!=0)
if (option_flags & GIF_OUTPUT)
Message(BE_NONQUIET," (%s)", PACKAGE_NAME);
Message(BE_NONQUIET," %s Copyright 2002-2015 Jan-Ake Larsson\n",
PACKAGE_VERSION);
Message(BE_NONQUIET," %s Copyright 2002-2015, 2019 Jan-Ake Larsson\n",
PACKAGE_VERSION);

for (i=1; i<argc; i++) {
if (*argv[i]=='-') {
Expand Down Expand Up @@ -501,12 +490,8 @@ bool DecodeArgs(int argc, char ** argv)
}
break;
case 'v': /* verbatim mode */
if (strcmp(p, "ersion")==0) {
if (strcmp(basename(programname),PACKAGE_NAME)!=0)
printf("%s (%s) %s\n",basename(programname),
PACKAGE_NAME,PACKAGE_VERSION);
else
puts(PACKAGE_STRING);
if (strcmp(p, "ersion")==0) {
puts(PACKAGE_STRING);
#ifdef HAVE_LIBKPATHSEA
puts (KPSEVERSION);
#endif
Expand All @@ -525,7 +510,7 @@ bool DecodeArgs(int argc, char ** argv)
}
# endif
#endif
puts ("Copyright (C) 2002-2015 Jan-Ake Larsson.\n\
puts ("Copyright (C) 2002-2015, 2019 Jan-Ake Larsson.\n\
There is NO warranty. You may redistribute this software\n\
under the terms of the GNU Lesser General Public License\n\
version 3, see the COPYING file in the dvipng distribution\n\
Expand Down
9 changes: 8 additions & 1 deletion Programs/DviWare/dvipng/source/special.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,15 @@
#ifndef WIN32
#include <sys/wait.h>
#else /* WIN32 */
#undef pipe
#include <fcntl.h>
#include <io.h>
#include <process.h>
#ifndef pipe
#define pipe(p) _pipe(p, 65536, O_BINARY | _O_NOINHERIT)
#endif
#ifndef snprintf
#define snprintf _snprintf
#endif
#endif /* WIN32 */
#endif

Expand Down

0 comments on commit 31734fd

Please sign in to comment.