etch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Fitzner <>
Subject AW: svn commit: r1300957 - in /incubator/etch/trunk/scripts: apr-install.bat
Date Thu, 15 Mar 2012 18:22:41 GMT
Hi Scott,
I am fine with that! As a remark to the apr-install scripts: The apr install script is just
a helper to build the APR simpler. It should also be possible to build the APR via the regular
way or use a binary distribution!


-----Ursprüngliche Nachricht-----
Von: scott comer [] 
Gesendet: Donnerstag, 15. März 2012 14:36
Betreff: Re: svn commit: r1300957 - in /incubator/etch/trunk/scripts: apr-install.bat


ok, with some small tweaks i made this work. included is the patch:
1) fix quoting in the bat file for special chars
2) fix path names to use backslash instead of forward slash
3) restore wget download instead of svn

if you're happy with these, i'll commit them.

scott out

Index: apr-install.bat
--- apr-install.bat    (revision 1300967)
+++ apr-install.bat    (working copy)
@@ -17,7 +17,9 @@
  @echo off

  @REM set INSTALL_PREFIX=C:\dev\projects\Etch\externals
-@REM set VC_HOME=C:\Program Files (x86)\Microsoft Visual Studio 8\VC
+@REM set VC_HOME=C:\Program Files ^(x86^)\Microsoft Visual Studio 8\VC 
+@REM use this instead on 32-bit windows:
+@REM set VC_HOME=C:\Program Files\Microsoft Visual Studio 8\VC

  REM check if environment is set
  IF "%INSTALL_PREFIX%" == "" (
@@ -66,13 +68,25 @@
  cd apr

  REM apr
-svn export apr
+rem svn export apr 
+mv apr-1.4.6 apr
+rm -rf

  REM apr-util
-svn export
+rem svn export apr-util
+mv apr-util-1.4.1 apr-util
+rm -rf

  REM apr-iconv
-svn export
+rem svn export apr-iconv
+mv apr-iconv-1.2.1 apr-iconv
+rm -rf

  cd ..
  @echo ==================================================
@@ -102,9 +116,9 @@
  @echo solution. After that , please close VS.
  @echo ==================================================
-cd apr/apr-util
+cd apr\apr-util
  devenv aprutil.dsw
-cd ../..
+cd ..\..

  @echo ==================================================
  @echo Converting APR to new VS version done.
@@ -120,14 +134,14 @@
  @echo Building APR...
  @echo ==================================================

-cd apr/apr-util
+cd apr\apr-util
  devenv aprutil.sln /build Release /project apr
  devenv aprutil.sln /build Release /project apriconv
  devenv aprutil.sln /build Release /project libapr
  devenv aprutil.sln /build Release /project libapriconv
  devenv aprutil.sln /build Release /project libapriconv_ccs_modules
  devenv aprutil.sln /build Release /project libapriconv_ces_modules -cd ../..
+cd ..\..

  @echo ==================================================
  @echo Building APR done.
@@ -135,6 +149,7 @@
  goto :EOF

+rem should be 1.4.6 but this is a hack
  mkdir "%INSTALL_PREFIX_APR%\bin"
  mkdir "%INSTALL_PREFIX_APR%\iconv"

View raw message