674ffb9
To: vim-dev@vim.org
674ffb9
Subject: Patch 7.1.176
674ffb9
Fcc: outbox
674ffb9
From: Bram Moolenaar <Bram@moolenaar.net>
674ffb9
Mime-Version: 1.0
674ffb9
Content-Type: text/plain; charset=ISO-8859-1
674ffb9
Content-Transfer-Encoding: 8bit
674ffb9
------------
674ffb9
674ffb9
Patch 7.1.176
674ffb9
Problem:    Building with Aap fails when the "compiledby" argument contains
674ffb9
	    '<' or '>' characters. (Alex Yeh)
674ffb9
Solution:   Change how quoting is done in the Aap recipe.
674ffb9
Files:	    src/main.aap
674ffb9
674ffb9
674ffb9
*** ../vim-7.1.175/src/main.aap	Tue Sep 25 22:13:14 2007
674ffb9
--- src/main.aap	Fri Dec  7 17:03:31 2007
674ffb9
***************
674ffb9
*** 63,70 ****
674ffb9
          @else:
674ffb9
          @   arch = "ppc"
674ffb9
          :print Building for $arch system
674ffb9
          :sys CONFIG_STATUS=auto/config.status
674ffb9
!                 ./configure.aap `file2string("config.arg")`
674ffb9
                      --with-mac-arch=$arch
674ffb9
                      --cache-file=auto/config.cache
674ffb9
  
674ffb9
--- 63,71 ----
674ffb9
          @else:
674ffb9
          @   arch = "ppc"
674ffb9
          :print Building for $arch system
674ffb9
+         config_args = `file2string("config.arg")`
674ffb9
          :sys CONFIG_STATUS=auto/config.status
674ffb9
!                 ./configure.aap $config_args
674ffb9
                      --with-mac-arch=$arch
674ffb9
                      --cache-file=auto/config.cache
674ffb9
  
674ffb9
***************
674ffb9
*** 440,450 ****
674ffb9
          :print >> $target char_u *all_lflags = (char_u *)"$linkcmd";
674ffb9
          @if _no.get("COMPILEDBY"):
674ffb9
              who = $COMPILEDBY
674ffb9
!             where = ''
674ffb9
          @else:
674ffb9
              :syseval whoami | :eval re.sub("\n", "", stdin) | :assign who
674ffb9
  
674ffb9
              :syseval hostname | :eval re.sub("\n", "", stdin) | :assign where
674ffb9
          :print >> $target char_u *compiled_user = (char_u *)"$who";
674ffb9
          :print >> $target char_u *compiled_sys = (char_u *)"$where";
674ffb9
  
674ffb9
--- 441,453 ----
674ffb9
          :print >> $target char_u *all_lflags = (char_u *)"$linkcmd";
674ffb9
          @if _no.get("COMPILEDBY"):
674ffb9
              who = $COMPILEDBY
674ffb9
!             where =
674ffb9
          @else:
674ffb9
              :syseval whoami | :eval re.sub("\n", "", stdin) | :assign who
674ffb9
  
674ffb9
              :syseval hostname | :eval re.sub("\n", "", stdin) | :assign where
674ffb9
+         @who = string.replace(who, '"', '\\"')
674ffb9
+         @where = string.replace(where, '"', '\\"')
674ffb9
          :print >> $target char_u *compiled_user = (char_u *)"$who";
674ffb9
          :print >> $target char_u *compiled_sys = (char_u *)"$where";
674ffb9
  
674ffb9
*** ../vim-7.1.175/src/version.c	Sun Dec  9 20:25:59 2007
674ffb9
--- src/version.c	Mon Dec 31 16:40:01 2007
674ffb9
***************
674ffb9
*** 668,669 ****
674ffb9
--- 668,671 ----
674ffb9
  {   /* Add new patch number below this line */
674ffb9
+ /**/
674ffb9
+     176,
674ffb9
  /**/
674ffb9
674ffb9
-- 
674ffb9
E  M  A  C  S
674ffb9
s  e  l  o  h
674ffb9
c  t  t  n  i
674ffb9
a  a     t  f
674ffb9
p        r  t
674ffb9
e        o
674ffb9
         l
674ffb9
674ffb9
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
674ffb9
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
674ffb9
\\\        download, build and distribute -- http://www.A-A-P.org        ///
674ffb9
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///