[banshee] windows: Improve readability of the checkout-banshee script



commit 3022e4d18475652ced6627802c0e8e57755060c7
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Wed Feb 16 18:25:47 2011 +0100

    windows: Improve readability of the checkout-banshee script
    
    As the git command is itself a batch file on Windows, you need to use
    "call" to call it from another batch file.

 build/windows/checkout-banshee.bat |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/build/windows/checkout-banshee.bat b/build/windows/checkout-banshee.bat
index da5c622..3eee3f9 100644
--- a/build/windows/checkout-banshee.bat
+++ b/build/windows/checkout-banshee.bat
@@ -3,5 +3,16 @@ REM It will result in a banshee/ directory under where it's launched from.
 REM See banshee\build\windows\README.txt for more information
 REM (this file is tracked in version control at: http://git.gnome.org/browse/banshee/plain/build/windows/checkout-banshee.bat )
 
-REM for some reason need to put these all on one line w/ && between; as separate commands on separate lines it stops after a given git cmd
-git clone git://git.gnome.org/banshee && cd banshee && git submodule update --init && git clone git://gitorious.org/banshee/windows-binaries.git bin && echo "Checkout script finished. Banshee is now checked out into the banshee folder.  Build it with build\windows\build-banshee.bat or your favorite IDE using Banshee.sln" && pause
+call git clone git://git.gnome.org/banshee
+if not exist banshee goto failure
+
+cd banshee
+call git submodule update --init
+call git clone git://gitorious.org/banshee/windows-binaries.git bin
+if not exist bin goto failure
+
+echo "Checkout script finished. Banshee is now checked out into the banshee folder.  Build it with build\windows\build-banshee.bat or your favorite IDE using Banshee.sln"
+pause
+
+:failure
+echo "There was a problem during the checkout. Please see the message above."



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]