bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DJGPP specific issues


From: Juan Manuel Guerrero
Subject: DJGPP specific issues
Date: Wed, 6 Feb 2008 11:18:06 +0100
User-agent: KMail/1.9.5

Index: ChangeLog
===================================================================
RCS file: /sources/bison/bison/ChangeLog,v
retrieving revision 1.1766
diff -U 3 -r1.1766 ChangeLog
--- ChangeLog   31 Jan 2008 00:53:21 -0000      1.1766
+++ ChangeLog   6 Feb 2008 09:51:17 -0000
@@ -1,3 +1,23 @@
+2008-02-06  Juan Manuel Guerrero  <address@hidden>
+
+       DJGPP specific issues.
+       * djgpp/config.bat: Add filenames that are not 8.3 clean and that must
+       be changed.  Copyright timestamp adjusted.
+       * djgpp/config.sed: Add filenames that are not 8.3 clean and that must
+       be changed.  Copyright timestamp adjusted.
+       * djgpp/config.site: Copyright timestamp adjusted.
+       * djgpp/config_h.sed: Copyright timestamp adjusted.
+       * djgpp/djunpack.bat: Copyright timestamp adjusted.
+       * djgpp/fnchnage.lst: Add filenames that are not 8.3 clean to the
+       filename translation list.
+       * djgpp/subpipe.c (init_subpipe): Check the environment variables
+       TMPDIR, TMP and TEMP, in that order, to determinate where the temp
+       files shall be created.  Before trying to use the temp dir where the
+       environment variable points to check that the dir really exists. If
+       not default to the cwd as temp dir.  Copyright timestamp adjusted.
+       * djgpp/subpipe.h: Copyright timestamp adjusted.
+       * djgpp/testsuite.sed: Copyright timestamp adjusted.
+
 2008-01-30  Paul Eggert  <address@hidden>
 
        * doc/bison.texinfo: Update Back-Cover text to reflect new GNU wording.
Index: djgpp/Makefile.maint
===================================================================
RCS file: /sources/bison/bison/djgpp/Makefile.maint,v
retrieving revision 1.5
diff -U 3 -r1.5 Makefile.maint
--- djgpp/Makefile.maint        15 Aug 2007 20:21:23 -0000      1.5
+++ djgpp/Makefile.maint        6 Feb 2008 09:51:17 -0000
@@ -1,7 +1,7 @@
 # DJGPP Maintainer's Makefile                                    -*-Makefile-*-
 # Requires GNU sed
 
-## Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+## Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
Index: djgpp/README.in
===================================================================
RCS file: /sources/bison/bison/djgpp/README.in,v
retrieving revision 1.7
diff -U 3 -r1.7 README.in
--- djgpp/README.in     15 Aug 2007 20:21:24 -0000      1.7
+++ djgpp/README.in     6 Feb 2008 09:51:17 -0000
@@ -1,6 +1,6 @@
 This is a port of GNU Bison @VERSION@ to MSDOS/DJGPP.
 
-Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -118,8 +118,8 @@
          djdev203.zip (or a later but NOT a prior version)
          bsh204b.zip  (or a later but NOT a prior version)
           gccNNNb.zip, gppNNN.zip, bnuNNNb.zip, makNNNb.zip, filNNNb.zip,
-          shlNNNb.zip, txtNNNb.zip, txiNNNb.zip, grepNNNb.zip, sedNNNb.zip,
-          and m4NNN.zip
+          perlNNNb.zip, shlNNNb.zip, txtNNNb.zip, txiNNNb.zip, grepNNNb.zip,
+          sedNNNb.zip and m4NNN.zip
 
        If you want to run the check you will need also:
          difNNNb.zip
Index: djgpp/config.bat
===================================================================
RCS file: /sources/bison/bison/djgpp/config.bat,v
retrieving revision 1.14
diff -U 3 -r1.14 config.bat
--- djgpp/config.bat    15 Aug 2007 20:21:24 -0000      1.14
+++ djgpp/config.bat    6 Feb 2008 09:51:20 -0000
@@ -4,7 +4,7 @@
 Rem WARNING WARNING WARNING: This file needs to have DOS CRLF end-of-line
 Rem format, or else stock DOS/Windows shells will refuse to run it.
 
-Rem Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+Rem Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
 Rem This program is free software: you can redistribute it and/or modify
 Rem it under the terms of the GNU General Public License as published by
@@ -212,6 +212,46 @@
 if not errorlevel 1 mv -f %XSRC%/data/c++-skel.m4 %XSRC%/data/cxx-skel.m4
 test -f %XSRC%/data/cxx-skel.m4
 if errorlevel 1 mv -f %XSRC%/data/cpp-skel.m4 %XSRC%/data/cxx-skel.m4
+test -f %XSRC%/build-aux/javacomp.sh.in
+if not errorlevel 1 mv -f %XSRC%/build-aux/javacomp.sh.in 
%XSRC%/build-aux/javacomp.sh-in
+test -f %XSRC%/build-aux/javacomp.sh-in
+if errorlevel 1 mv -f %XSRC%/build-aux/javacomp.sh 
%XSRC%/build-aux/javacomp.sh-in
+test -f %XSRC%/build-aux/javacomp.sh-in
+if errorlevel 1 mv -f %XSRC%/build-aux/javacomp.shin 
%XSRC%/build-aux/javacomp.sh-in
+test -f %XSRC%/build-aux/javacomp.sh-in
+if errorlevel 1 mv -f %XSRC%/build-aux/javacomp.sh_in 
%XSRC%/build-aux/javacomp.sh-in
+test -f %XSRC%/build-aux/javacomp.sh-in
+if errorlevel 1 mv -f %XSRC%/build-aux/javacomp.sh.in 
%XSRC%/build-aux/javacomp.sh-in
+test -f %XSRC%/build-aux/javaexec.sh.in
+if not errorlevel 1 mv -f %XSRC%/build-aux/javaexec.sh.in 
%XSRC%/build-aux/javaexec.sh-in
+test -f %XSRC%/build-aux/javaexec.sh-in
+if errorlevel 1 mv -f %XSRC%/build-aux/javaexec.sh 
%XSRC%/build-aux/javaexec.sh-in
+test -f %XSRC%/build-aux/javaexec.sh-in
+if errorlevel 1 mv -f %XSRC%/build-aux/javaexec.shin 
%XSRC%/build-aux/javaexec.sh-in
+test -f %XSRC%/build-aux/javaexec.sh-in
+if errorlevel 1 mv -f %XSRC%/build-aux/javaexec.sh_in 
%XSRC%/build-aux/javaexec.sh-in
+test -f %XSRC%/build-aux/javaexec.sh-in
+if errorlevel 1 mv -f %XSRC%/build-aux/javaexec_sh.in 
%XSRC%/build-aux/javaexec.sh-in
+test -f %XSRC%/doc/yacc.1.in
+if not errorlevel 1 mv -f %XSRC%/doc/yacc.1.in %XSRC%/doc/yacc.1-in
+test -f %XSRC%/doc/yacc.1-in
+if errorlevel 1 mv -f %XSRC%/doc/yacc.1 %XSRC%/doc/yacc.1-in
+test -f %XSRC%/doc/yacc.1-in
+if errorlevel 1 mv -f %XSRC%/doc/yacc.1in %XSRC%/doc/yacc.1-in
+test -f %XSRC%/doc/yacc.1-in
+if errorlevel 1 mv -f %XSRC%/doc/yacc.1_in %XSRC%/doc/yacc.1-in
+test -f %XSRC%/doc/yacc.1-in
+if errorlevel 1 mv -f %XSRC%/doc/yacc_1.in %XSRC%/doc/yacc.1-in
+test -f %XSRC%/etc/bench.pl.in
+if not errorlevel 1 mv -f %XSRC%/etc/bench.pl.in %XSRC%/etc/bench.pl-in
+test -f %XSRC%/etc/bench.pl-in
+if errorlevel 1 mv -f %XSRC%/etc/bench.pl %XSRC%/etc/bench.pl-in
+test -f %XSRC%/etc/bench.pl-in
+if errorlevel 1 mv -f %XSRC%/etc/bench.plin %XSRC%/etc/bench.pl-in
+test -f %XSRC%/etc/bench.pl-in
+if errorlevel 1 mv -f %XSRC%/etc/bench.pl_in %XSRC%/etc/bench.pl-in
+test -f %XSRC%/etc/bench.pl-in
+if errorlevel 1 mv -f %XSRC%/etc/bench_pl.in %XSRC%/etc/bench.pl-in
 
 :scan_gram_c_Test
 test -f %XSRC%/src/c-scan-gram.c
Index: djgpp/config.sed
===================================================================
RCS file: /sources/bison/bison/djgpp/config.sed,v
retrieving revision 1.11
diff -U 3 -r1.11 config.sed
--- djgpp/config.sed    15 Aug 2007 20:21:24 -0000      1.11
+++ djgpp/config.sed    6 Feb 2008 09:51:20 -0000
@@ -3,7 +3,7 @@
 # of the configure script generated by autoconf 2.61.
 
 
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -35,6 +35,10 @@
 s,scan-gram-c,c-scan-gram,g\
 s,scan-skel-c,c-scan-skel,g\
 s,inttypes_,_inttypes,g\
+s,javacomp\\.sh\\.in,javacomp.sh-in,g\
+s,javaexec\\.sh\\.in,javaexec.sh-in,g\
+s,yacc\\.1\\.in,yacc.1-in,g\
+s,bench\\.pl\\.in,bench.pl-in,g\
 s,Makefile\\.am\\.in,Makefile.am-in,g\
 s,Makefile\\.in\\.in,Makefile.in-in,g\
 /^\\.y\\.c:/,/^$/ {\
@@ -53,6 +57,8 @@
        echo "bison\\$(EXEEXT) -y %1 %2 %3 %4 %5 %6 %7 %8 %9" >address@hidden
 /^bin_SCRIPTS =/s/$/ yacc.bat/\
 /^MOSTLYCLEANFILES = yacc/s/$/ yacc.bat/\
+/cross-options.texi:/,/^$/ s|bison|&.exe|g\
+/^\\.x\\.1:/,/^$/ s|\\$program|&.exe|g\
 eof_djgpp\
 sed -f "\$tmp/subs-djgpp.sed" \$tmp/out > \$tmp/out.djgpp\
 mv -f \$tmp/out.djgpp \$tmp/out
@@ -62,11 +68,19 @@
 /ac_config_files=/ {
   /runtime-po/!s|po/Makefile\.in|&:po/Makefile.in-in|
   s|runtime-po/Makefile\.in|&:runtime-po/Makefile.in-in|
+  s|javacomp\.sh\.in|javacomp.sh-in|
+  s|javaexec\.sh\.in|javaexec.sh-in|
+  s|doc/yacc\.1|&:doc/yacc.1-in|
+  s|etc/bench.pl|&:etc/bench.pl-in|
 }
 
 /CONFIG_FILES=/ {
   /runtime-po/!s|po/Makefile\.in|&:po/Makefile.in-in|2
   s|runtime-po/Makefile\.in|&:runtime-po/Makefile.in-in|2
+  s|javacomp\.sh\.in|javacomp.sh-in|
+  s|javaexec\.sh\.in|javaexec.sh-in|
+  s|doc/yacc\.1|&:doc/yacc.1-in|2
+  s|etc/bench\.pl|&:etc/bench.pl-in|2
 }
 
 # We always use _deps and _libs instead of .deps and .libs, because
Index: djgpp/config.site
===================================================================
RCS file: /sources/bison/bison/djgpp/config.site,v
retrieving revision 1.10
diff -U 3 -r1.10 config.site
--- djgpp/config.site   15 Aug 2007 20:21:24 -0000      1.10
+++ djgpp/config.site   6 Feb 2008 09:51:20 -0000
@@ -3,7 +3,7 @@
 # This is the config.site file for configuring GNU packages
 # which are to be built with DJGPP tools.
 
-# Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
Index: djgpp/config_h.sed
===================================================================
RCS file: /sources/bison/bison/djgpp/config_h.sed,v
retrieving revision 1.3
diff -U 3 -r1.3 config_h.sed
--- djgpp/config_h.sed  15 Aug 2007 20:21:24 -0000      1.3
+++ djgpp/config_h.sed  6 Feb 2008 09:51:20 -0000
@@ -1,6 +1,6 @@
 # sed script for DJGPP specific editing of config.hin
 
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
Index: djgpp/djunpack.bat
===================================================================
RCS file: /sources/bison/bison/djgpp/djunpack.bat,v
retrieving revision 1.4
diff -U 3 -r1.4 djunpack.bat
--- djgpp/djunpack.bat  15 Aug 2007 20:21:24 -0000      1.4
+++ djgpp/djunpack.bat  6 Feb 2008 09:51:21 -0000
@@ -7,7 +7,7 @@
 Rem renaming some of the files whose names are invalid on DOS or conflict
 Rem with other file names after truncation to DOS 8+3 namespace.
 Rem
-Rem Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+Rem Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 Rem
 Rem This program is free software: you can redistribute it and/or modify
 Rem it under the terms of the GNU General Public License as published by
Index: djgpp/fnchange.lst
===================================================================
RCS file: /sources/bison/bison/djgpp/fnchange.lst,v
retrieving revision 1.2
diff -U 3 -r1.2 fnchange.lst
--- djgpp/fnchange.lst  8 Mar 2007 01:47:29 -0000       1.2
+++ djgpp/fnchange.lst  6 Feb 2008 09:51:21 -0000
@@ -1,5 +1,9 @@
address@hidden@/build-aux/javacomp.sh.in              
@V@/build-aux/javacomp.sh-in
address@hidden@/build-aux/javaexec.sh.in              
@V@/build-aux/javaexec.sh-in
 @V@/data/c++-skel.m4                      @V@/data/cxx-skel.m4
 @V@/data/c++.m4                           @V@/data/cxx.m4
address@hidden@/doc/yacc.1.in                         @V@/doc/yacc.1-in
address@hidden@/etc/bench.pl.in                       @V@/etc/bench.pl-in
 @V@/examples/calc++/                      @V@/examples/calcxx/
 @V@/examples/calc++/Makefile.am           @V@/examples/calcxx/Makefile.am
 @V@/examples/calc++/Makefile.in           @V@/examples/calcxx/Makefile.in
@@ -16,6 +20,8 @@
 @V@/examples/calc++/calc++-parser.stamp   
@V@/examples/calcxx/calcxx-parser.stamp
 @V@/examples/calc++/calc++-parser.yy      @V@/examples/calcxx/calcxx-parser.yy
 @V@/examples/calc++/test                  @V@/examples/calcxx/test
address@hidden@/tests/c++.at                          @V@/tests/cxx.at
address@hidden@/po/Makefile.in.in                     @V@/po/Makefile.in-in
address@hidden@/runtime-po/Makefile.in.in             
@V@/runtime-po/Makefile.in-in
 @V@/src/scan-gram-c.c                     @V@/src/c-scan-gram.c
 @V@/src/scan-skel-c.c                     @V@/src/c-scan-skel.c
address@hidden@/tests/c++.at                          @V@/tests/cxx.at
Index: djgpp/subpipe.c
===================================================================
RCS file: /sources/bison/bison/djgpp/subpipe.c,v
retrieving revision 1.4
diff -U 3 -r1.4 subpipe.c
--- djgpp/subpipe.c     15 Aug 2007 20:21:24 -0000      1.4
+++ djgpp/subpipe.c     6 Feb 2008 09:51:21 -0000
@@ -1,6 +1,6 @@
 /* Subprocesses with pipes.
 
-   Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -67,15 +67,26 @@
 void
 init_subpipe(void)
 {
+  char *tmpdir;
   int fd;
 
-  strcpy(tmp_file_name[0], "/dev/env/TMPDIR/bnXXXXXX");
+  tmpdir = getenv("TMPDIR");
+  if (tmpdir == NULL)
+    tmpdir = getenv("TMP");
+  if (tmpdir == NULL)
+    tmpdir = getenv("TEMP");
+  if (access(tmpdir, D_OK))
+    tmpdir = ".";
+
+  strcpy(tmp_file_name[0], tmpdir);
+  strcat(tmp_file_name[0], "/bnXXXXXX");
   fd = mkstemp(tmp_file_name[0]);
   if (fd < 0)
     error(EXIT_FAILURE, 0, _("creation of a temporary file failed"));
   close (fd);
 
-  strcpy(tmp_file_name[1], "/dev/env/TMPDIR/bnXXXXXX");
+  strcpy(tmp_file_name[1], tmpdir);
+  strcat(tmp_file_name[1], "/bnXXXXXX");
   fd = mkstemp(tmp_file_name[1]);
   if (fd < 0)
     error(EXIT_FAILURE, 0, _("creation of a temporary file failed"));
Index: djgpp/subpipe.h
===================================================================
RCS file: /sources/bison/bison/djgpp/subpipe.h,v
retrieving revision 1.3
diff -U 3 -r1.3 subpipe.h
--- djgpp/subpipe.h     15 Aug 2007 20:21:25 -0000      1.3
+++ djgpp/subpipe.h     6 Feb 2008 09:51:21 -0000
@@ -1,5 +1,5 @@
 /* Subprocesses with pipes.
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
Index: djgpp/testsuite.sed
===================================================================
RCS file: /sources/bison/bison/djgpp/testsuite.sed,v
retrieving revision 1.2
diff -U 3 -r1.2 testsuite.sed
--- djgpp/testsuite.sed 15 Aug 2007 20:21:25 -0000      1.2
+++ djgpp/testsuite.sed 6 Feb 2008 09:51:21 -0000
@@ -3,7 +3,7 @@
 # of the testsuite script generated by autoconf 2.61.
 
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by




reply via email to

[Prev in Thread] Current Thread [Next in Thread]