home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / ActivePerl-5.8.4.810-MSWin32-x86.msi / _e00c88afc2fc6e828391681112c2a256 < prev    next >
Encoding:
Text File  |  2004-06-01  |  4.8 KB  |  142 lines

  1. /*    patchlevel.h
  2.  *
  3.  *    Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999,
  4.  *    2000, 2001, 2002, 2003, 2004, by Larry Wall and others
  5.  *
  6.  *    You may distribute under the terms of either the GNU General Public
  7.  *    License or the Artistic License, as specified in the README file.
  8.  *
  9.  */
  10.  
  11. #ifndef __PATCHLEVEL_H_INCLUDED__
  12.  
  13. #include "BuildInfo.h"
  14.  
  15. /* do not adjust the whitespace! Configure expects the numbers to be
  16.  * exactly on the third column */
  17.  
  18. #define PERL_REVISION    5        /* age */
  19. #define PERL_VERSION    8        /* epoch */
  20. #define PERL_SUBVERSION    4        /* generation */
  21.  
  22. /* The following numbers describe the earliest compatible version of
  23.    Perl ("compatibility" here being defined as sufficient binary/API
  24.    compatibility to run XS code built with the older version).
  25.    Normally this should not change across maintenance releases.
  26.  
  27.    Note that this only refers to an out-of-the-box build.  Many non-default
  28.    options such as usemultiplicity tend to break binary compatibility
  29.    more often.
  30.  
  31.    This is used by Configure et al to figure out 
  32.    PERL_INC_VERSION_LIST, which lists version libraries
  33.    to include in @INC.  See INSTALL for how this works.
  34. */
  35. #define PERL_API_REVISION    5    /* Adjust manually as needed.  */
  36. #define PERL_API_VERSION    8    /* Adjust manually as needed.  */
  37. #define PERL_API_SUBVERSION    0    /* Adjust manually as needed.  */
  38. /*
  39.    XXX Note:  The selection of non-default Configure options, such
  40.    as -Duselonglong may invalidate these settings.  Currently, Configure
  41.    does not adequately test for this.   A.D.  Jan 13, 2000
  42. */
  43.  
  44. #define __PATCHLEVEL_H_INCLUDED__
  45. #endif
  46.  
  47. /*
  48.     local_patches -- list of locally applied less-than-subversion patches.
  49.     If you're distributing such a patch, please give it a name and a
  50.     one-line description, placed just before the last NULL in the array
  51.     below.  If your patch fixes a bug in the perlbug database, please
  52.     mention the bugid.  If your patch *IS* dependent on a prior patch,
  53.     please place your applied patch line after its dependencies. This
  54.     will help tracking of patch dependencies.
  55.  
  56.     Please either use 'diff --unified=0' if your diff supports
  57.     that or edit the hunk of the diff output which adds your patch
  58.     to this list, to remove context lines which would give patch
  59.     problems. For instance, if the original context diff is
  60.  
  61.        *** patchlevel.h.orig    <date here>
  62.        --- patchlevel.h    <date here>
  63.        *** 38,43 ***
  64.        --- 38,44 ---
  65.              ,"FOO1235 - some patch"
  66.              ,"BAR3141 - another patch"
  67.              ,"BAZ2718 - and another patch"
  68.        +     ,"MINE001 - my new patch"
  69.              ,NULL
  70.          };
  71.     
  72.     please change it to 
  73.        *** patchlevel.h.orig    <date here>
  74.        --- patchlevel.h    <date here>
  75.        *** 41,43 ***
  76.        --- 41,44 ---
  77.        +     ,"MINE001 - my new patch"
  78.              ,NULL
  79.          };
  80.     
  81.     (Note changes to line numbers as well as removal of context lines.)
  82.     This will prevent patch from choking if someone has previously
  83.     applied different patches than you.
  84.  
  85.         History has shown that nobody distributes patches that also
  86.         modify patchlevel.h. Do it yourself. The following perl
  87.         program can be used to add a comment to patchlevel.h:
  88.  
  89. #!perl
  90. die "Usage: perl -x patchlevel.h comment ..." unless @ARGV;
  91. open PLIN, "patchlevel.h" or die "Couldn't open patchlevel.h : $!";
  92. open PLOUT, ">patchlevel.new" or die "Couldn't write on patchlevel.new : $!";
  93. my $seen=0;
  94. while (<PLIN>) {
  95.     if (/\t,NULL/ and $seen) {
  96.        while (my $c = shift @ARGV){
  97.             print PLOUT qq{\t,"$c"\n};
  98.        }
  99.     }
  100.     $seen++ if /local_patches\[\]/;
  101.     print PLOUT;
  102. }
  103. close PLOUT or die "Couldn't close filehandle writing to patchlevel.new : $!";
  104. close PLIN or die "Couldn't close filehandle reading from patchlevel.h : $!";
  105. unlink "patchlevel.bak" or warn "Couldn't unlink patchlevel.bak : $!"
  106.   if -e "patchlevel.bak";
  107. rename "patchlevel.h", "patchlevel.bak" or
  108.   die "Couldn't rename patchlevel.h to patchlevel.bak : $!";
  109. rename "patchlevel.new", "patchlevel.h" or
  110.   die "Couldn't rename patchlevel.new to patchlevel.h : $!";
  111. __END__
  112.  
  113. Please keep empty lines below so that context diffs of this file do
  114. not ever collect the lines belonging to local_patches() into the same
  115. hunk.
  116.  
  117.  */
  118.  
  119.  
  120.  
  121.  
  122. #if !defined(PERL_PATCHLEVEL_H_IMPLICIT) && !defined(LOCAL_PATCH_COUNT)
  123. static    char    *local_patches[] = {
  124.         NULL
  125.     ,ACTIVEPERL_LOCAL_PATCHES_ENTRY
  126.         ,"22751 Update to Test.pm 1.25"
  127.         ,"21540 Fix backward-compatibility issues in if.pm"
  128.     ,NULL
  129. };
  130.  
  131.  
  132.  
  133. /* Initial space prevents this variable from being inserted in config.sh  */
  134. #  define    LOCAL_PATCH_COUNT    \
  135.     (sizeof(local_patches)/sizeof(local_patches[0])-2)
  136.  
  137. /* the old terms of reference, add them only when explicitly included */
  138. #define PATCHLEVEL        PERL_VERSION
  139. #undef  SUBVERSION        /* OS/390 has a SUBVERSION in a system header */
  140. #define SUBVERSION        PERL_SUBVERSION
  141. #endif
  142.