Show
Ignore:
Timestamp:
04.12.2008 17:26:10 (11 years ago)
Author:
max
Message:

Add sqlite extraction support

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/makegs2.bat

    r18034 r18090  
    2424echo ##  # #   #    #    # #   #  #  #  # # # #      ##    
    2525echo  #### #    ###  ### # # ###  ##  ##  # #  ###   ####  
    26 echo   (C) 2009, New Zealand Digital Library Project 
     26echo   (C) 2008, New Zealand Digital Library Project 
    2727echo. 
    2828echo. 
     
    4141IF NOT EXIST .\common-src\indexers\packages\windows\iconv\iconv\*.* IF NOT EXIST .\common-src\indexers\packages\windows\iconv\iconv.zip GOTO ENDNOICONV 
    4242 
     43IF NOT EXIST .\common-src\packages\sqlite\sqlite* IF NOT EXIST .\common-src\packages\sqlite\sqlite*.tar.gz GOTO ENDNOSQLITE 
     44 
    4345rem Ask the user to extract now or to directly compile 
    44 echo Do you want to unzip the required packages (Recommended)? This will be the default action in 10 seconds. 
     46echo Do you want to extract the required packages (Recommended)? This will be the default action in 10 seconds. 
    4547.\bin\windows\choice.exe /T:Y,10 /C:YN 
    4648    IF errorlevel 2 GOTO COMPILE 
     
    5153:UNZIP 
    5254IF NOT EXIST .\bin\windows\unzip.exe GOTO ENDNOUNZIP 
     55IF NOT EXIST .\bin\windows\gunzip.exe GOTO ENDNOUNZIP 
     56IF NOT EXIST .\bin\windows\tar.exe GOTO ENDNOUNZIP 
    5357 
    5458rem Extracting the packages 
     
    6266 
    6367IF EXIST .\common-src\indexers\packages\windows\iconv\iconv.zip .\bin\windows\unzip.exe -o .\common-src\indexers\packages\windows\iconv\iconv.zip -d .\common-src\indexers\packages\windows\iconv\ 
     68 
     69IF EXIST .\common-src\packages\sqlite\sqlite*.tar.gz .\bin\windows\gunzip.exe -cd .\common-src\packages\sqlite\sqlite*.tar.gz | .\bin\windows\tar.exe xv --directory=./common-src/packages/sqlite 
    6470echo. 
    6571echo. 
     
    7278IF NOT EXIST .\common-src\packages\windows\stlport\stlport\*.* GOTO NEEDUNZIP 
    7379IF NOT EXIST .\common-src\indexers\packages\windows\iconv\iconv\*.* GOTO NEEDUNZIP 
     80IF NOT EXIST .\common-src\packages\sqlite\sqlite* GOTO NEEDUNZIP 
    7481 
    7582rem Check some known paths to VCVARS32.BAT 
     
    147154:ENDNOUNZIP 
    148155echo. 
    149 echo /!\ Error /!\ - unzip.exe has not been found. 
    150 echo This is required to extract the packages required for compilation. 
    151 echo This tool is part of the Winbin folder, more info on this web page: 
     156echo /!\ Error /!\ - Extacting tools are missing. 
     157echo They are required to extract all packages needed for compilation. 
     158echo These tools are contained in the Winbin folder, more info on this web page: 
    152159echo http://wiki.greenstone.org/wiki/index.php/Installing_Greenstone_2_from_SVN_source_on_Windows#Getting_winbin 
    153160GOTO END 
     
    161168GOTO END 
    162169 
     170:ENDNOSQLITE 
     171echo. 
     172echo /!\ Error /!\ - SQLite is missing. 
     173echo Some required packages are missing in .\common-src\packages\sqlite\ 
     174echo Please go to this page for more information on how to get everything: 
     175echo http://wiki.greenstone.org/wiki/index.php/Installing_Greenstone_2_from_SVN_source_on_Windows 
     176GOTO END 
     177 
    163178:ENDNOICONV 
    164179echo.