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