home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.0.147 < prev    next >
Encoding:
Internet Message Format  |  2002-01-21  |  4.9 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.147
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.147
  11. Problem:    It's not easy to mark a Vim version as being modified.  The new
  12.             license requires this.
  13. Solution:   Add the --modified-by argument to configure and the MODIFIED_BY
  14.             define.  I's used in the intro screen and the ":version" output.
  15. Files:      src/auto/configure, src/configure.in, src/config.h.in,
  16.             src/version.c
  17.  
  18.  
  19. *** ../vim60.146/src/auto/configure    Thu Jan 17 12:12:55 2002
  20. --- src/auto/configure    Tue Jan 22 15:34:21 2002
  21. ***************
  22. *** 20,25 ****
  23. --- 20,27 ----
  24.   ac_help="$ac_help
  25.     --with-global-runtime=DIR    global runtime directory in 'runtimepath'"
  26.   ac_help="$ac_help
  27. +   --with-modified-by=NAME       name of who modified a rlease version"
  28. + ac_help="$ac_help
  29.     --with-features=TYPE    tiny, small, normal, big or huge (default: normal)"
  30.   ac_help="$ac_help
  31.     --with-compiledby=NAME  name to show in :version message"
  32. ***************
  33. *** 1207,1216 ****
  34.   fi
  35.   
  36.   
  37.   echo $ac_n "checking if character set is EBCDIC""... $ac_c" 1>&6
  38. ! echo "configure:1212: checking if character set is EBCDIC" >&5
  39.   cat > conftest.$ac_ext <<EOF
  40. ! #line 1214 "configure"
  41.   #include "confdefs.h"
  42.    
  43.   int main() {
  44. --- 1216,1239 ----
  45.   fi
  46.   
  47.   
  48. + echo $ac_n "checking --with-modified-by argument""... $ac_c" 1>&6
  49. + echo "configure:1221: checking --with-modified-by argument" >&5
  50. + # Check whether --with-modified-by or --without-modified-by was given.
  51. + if test "${with_modified_by+set}" = set; then
  52. +   withval="$with_modified_by"
  53. +   echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF
  54. + #define MODIFIED_BY "$withval"
  55. + EOF
  56. + else
  57. +   echo "$ac_t""no" 1>&6
  58. + fi
  59.   echo $ac_n "checking if character set is EBCDIC""... $ac_c" 1>&6
  60. ! echo "configure:1235: checking if character set is EBCDIC" >&5
  61.   cat > conftest.$ac_ext <<EOF
  62. ! #line 1237 "configure"
  63.   #include "confdefs.h"
  64.    
  65.   int main() {
  66. *** ../vim60.146/src/configure.in    Thu Jan 17 12:12:55 2002
  67. --- src/configure.in    Tue Jan 22 15:33:57 2002
  68. ***************
  69. *** 99,104 ****
  70. --- 106,116 ----
  71.   AC_MSG_CHECKING(--with-global-runtime argument)
  72.   AC_ARG_WITH(global-runtime, [  --with-global-runtime=DIR    global runtime directory in 'runtimepath'],
  73.       AC_MSG_RESULT($withval); AC_DEFINE_UNQUOTED(RUNTIME_GLOBAL, "$withval"),
  74. +     AC_MSG_RESULT(no))
  75. + AC_MSG_CHECKING(--with-modified-by argument)
  76. + AC_ARG_WITH(modified-by, [  --with-modified-by=NAME       name of who modified a rlease version],
  77. +     AC_MSG_RESULT($withval); AC_DEFINE_UNQUOTED(MODIFIED_BY, "$withval"),
  78.       AC_MSG_RESULT(no))
  79.   
  80.   dnl Check for EBCDIC stolen from the LYNX port to OS390 Unix
  81. *** ../vim60.146/src/config.h.in    Wed Oct 31 14:21:02 2001
  82. --- src/config.h.in    Tue Jan 22 14:35:41 2002
  83. ***************
  84. *** 332,334 ****
  85. --- 332,337 ----
  86.   
  87.   /* Define default global runtime path */
  88.   #undef RUNTIME_GLOBAL
  89. + /* Define name of who modified a released Vim */
  90. + #undef MODIFIED_BY
  91. *** ../vim60.146/src/version.c    Tue Jan 22 14:22:37 2002
  92. --- src/version.c    Tue Jan 22 15:15:52 2002
  93. ***************
  94. *** 608,609 ****
  95. --- 608,611 ----
  96.   {   /* Add new patch number below this line */
  97. + /**/
  98. +     147,
  99.   /**/
  100. ***************
  101. *** 1014,1019 ****
  102. --- 1016,1027 ----
  103.       }
  104.       }
  105.   
  106. + #ifdef MODIFIED_BY
  107. +     MSG_PUTS("\n");
  108. +     MSG_PUTS(_("Modified by "));
  109. +     MSG_PUTS(MODIFIED_BY);
  110. + #endif
  111.   #ifdef HAVE_PATHDEF
  112.       if (*compiled_user != NUL || *compiled_sys != NUL)
  113.       {
  114. ***************
  115. *** 1228,1233 ****
  116. --- 1236,1244 ----
  117.       "",
  118.       N_("version "),
  119.       N_("by Bram Moolenaar et al."),
  120. + #ifdef MODIFIED_BY
  121. +     " ",
  122. + #endif
  123.       N_("Vim is open source and freely distributable"),
  124.       "",
  125.       N_("Help poor children in Uganda!"),
  126. ***************
  127. *** 1249,1254 ****
  128. --- 1260,1268 ----
  129.       NULL,
  130.       NULL,
  131.       NULL,
  132. + #ifdef MODIFIED_BY
  133. +     NULL,
  134. + #endif
  135.       NULL,
  136.       NULL,
  137.       NULL,
  138. ***************
  139. *** 1332,1338 ****
  140.       int        col;
  141.       char_u    *p;
  142.       int        l;
  143. !     char_u    buf[100];
  144.   
  145.       /* Center the message horizontally. */
  146.       col = vim_strsize(mesg);
  147. --- 1346,1366 ----
  148.       int        col;
  149.       char_u    *p;
  150.       int        l;
  151. ! # define MODBY_LEN 150
  152. !     char_u    buf[MODBY_LEN];
  153. ! #ifdef MODIFIED_BY
  154. !     char_u    modby[MODBY_LEN];
  155. !     if (*mesg == ' ')
  156. !     {
  157. !     STRNCPY(modby, _("Modified by "), MODBY_LEN);
  158. !     modby[MODBY_LEN - 1] = NUL;
  159. !     l = STRLEN(modby);
  160. !     STRNCPY(modby + l, MODIFIED_BY, MODBY_LEN - l);
  161. !     modby[MODBY_LEN - 1] = NUL;
  162. !     mesg = modby;
  163. !     }
  164. ! #endif
  165.   
  166.       /* Center the message horizontally. */
  167.       col = vim_strsize(mesg);
  168.  
  169. --  
  170. The 50-50-90 rule: Anytime you have a 50-50 chance of getting 
  171. something right, there's a 90% probability you'll get it wrong.
  172.  
  173.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  174. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  175.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  176.