Skip to content
Permalink
Browse files
separate out downloads file for using with aria2 & remove old curl ap…
…proach
  • Loading branch information
dch committed Sep 1, 2011
1 parent b5bfa85 commit 014397e5ba5da3cf3f9131792a3e79b113213487
Show file tree
Hide file tree
Showing 6 changed files with 119 additions and 142 deletions.
@@ -1,22 +1,22 @@
@echo off
echo Build CouchDB under Windows - Time to Relax v0.6
echo Build CouchDB under Windows - Time to Relax v0.7

:: install stuff to C:\relax unless otherwise requested
if "%RELAX%" == "" set RELAX=C:\relax
if "%relax%" == "" set relax=c:\relax

:: find our source tree from one level up from current bin
set GLAZIER=%~dp0..
path=%~dp0;%~dp0..\bits;%RELAX%\7zip;%PATH%;
path=%~dp0;%~dp0..\bits;%relax%\7zip;%relax%\bin;%path%;

:: set these paths into the user environment for future usage
setx GLAZIER %GLAZIER%
setx RELAX %RELAX%
setx RELAX %relax%

:: set up folders
cd %relax%
mkdir bits bin release

echo START retrieving packages...
pushd %GLAZIER%\bits
call get_bits.cmd tools
call get_bits.cmd compilers
call get_bits.cmd source
pushd bits
aria2c.exe --force-sequential=false --max-connection-per-server=4 --check-certificate=false --auto-file-renaming=false --input-file=%relax%/downloads.md --max-concurrent-downloads=5 --dir=%relax%/bits --save-session=a2session.txt
echo DONE retrieving packages

:: md5 checksums
@@ -25,105 +25,72 @@ md5sum.exe --check md5sums.txt || echo FAILED: please check any missing or faile
echo DONE md5 checksums

:: unpack stuff
echo START unpacking tools in [%RELAX%]...
mkdir %RELAX%\release > NUL: 2>&1
junction.exe -accepteula > NUL: 2>&1
pushd %RELAX%
echo START unpacking tools in [%relax%]...
pushd %relax%

:: 7zip is used for unpacking the ISO images
:: 7zip is used for many things
echo START installing 7zip...
start /wait %GLAZIER%\bits\7z465.exe /S /D=%RELAX%\7zip
start /wait bits\7z465.exe /S /D=7zip\
echo DONE installing 7zip

:: unpack the ISOs into %RELAX%\ISOs\{name}
echo START unpacking ISOs in [%RELAX%\ISOs] ...
mkdir %RELAX%\ISOs > NUL: 2>&1
7z.exe x %GLAZIER%\bits\*.iso -aoa -o%RELAX%\ISOs\*
xcopy %relax%\ISOs\VS2008ExpressWithSP1ENUX1504728\VCExpress\WCU\vcredist_x86.exe %glazier%\bits\ /y
echo DONE unpacking ISOs in [%RELAX%\ISOs]

:: start installing stuff
echo START installing compilers...
echo START MS VS2008 Express...
:: TODO remove hackage that prevents installing MSSQL burning CPU and space
pushd %RELAX%\ISOs\VS2008ExpressWithSP1ENUX1504728\VCExpress\WCU\ && rd /s/q dist > NUL: 2>&1
mkdir dist && for %%i in (Silverlight SMO SSE) do @move %%i dist\
cd .. && start /wait setup.exe /q /norestart
popd
echo DONE MS VS2008 Express

echo START installing Windows 7 SDK...
:: if we merge the 32 and 64 bit SDK folders first, Windows installs the right one
:: automatically whether we are on 64 or 32 bit platform
pushd %RELAX%\ISOs\
rd /s/q Win7SDK > NUL: 2>&1
rename GRMSDKX_EN_DVD Win7SDK
xcopy GRMSDK_EN_DVD Win7SDK\ /e /y
rd /s/q GRMSDK_EN_DVD
start /wait win7sdk\setup.exe /q
popd
echo DONE installing Windows 7 SDK

echo START installing cygwin...
%GLAZIER%\bits\setup.exe
bits\setup.exe
:: c:\cygwin
:: all users
:: store bits in d:\glazier\bits\
:: direct connection
:: http uidaho
:: http uidaho or ftp ucmirror.canterbury.ac.nz
:: defaults + all DEVEL + UTILS/file
junction.exe c:\cygwin\relax %RELAX%
junction.exe %RELAX%\bin %GLAZIER%\bin
junction.exe %RELAX%\bits %GLAZIER%\bits
mklink /d c:\cygwin\relax %relax%
echo END installing cygwin

echo START installing latest mozilla build tools...
start /wait %GLAZIER%\bits\mozillaBuildSetup-Latest.exe /S
start /wait bits\mozillaBuildSetup-Latest.exe /S
echo DONE installing mozilla build tools

echo DONE unpacking tools in [%RELAX%]

:unpack source
echo START install wxWidgets...
start /wait %RELAX%\7zip\7z.exe x %GLAZIER%\bits\wxMSW* -aoa -y -o%RELAX%\
mkdir c:\cygwin\opt\local\pgm
mklink.exe /d c:\cygwin\opt\local\pgm\wxWidgets-2.8.11 c:\relax\wxMSW-2.8.11
echo DONE install wxWidgets

echo START install ICU...
start /wait %RELAX%\7zip\7z.exe x %GLAZIER%\bits\icu* -aoa -o%RELAX%\
echo DONE install ICU

echo START install vcredist...
xcopy %GLAZIER%\bits\vcredist_x86.exe %RELAX%\ /y /f
:: patch in Erlang R14B03 will look for it here
xcopy bits\vcredist_x86.exe %relax%\ /y /f
echo DONE install vcredist

echo START install win32 assembler...
7z x %glazier%\bits\nasm-2.09.07-win32.zip -o%relax%\ -y
move %relax%\nasm* %relax%\nasm
7z x bits\nasm-2.09.07-win32.zip -o%relax%\ -y
move nasm* nasm
echo DONE install win32 assembler

echo START install strawberry perl...
7z x %glazier%\bits\strawberry-perl-5.12.2.0-portable.zip -o%relax%\strawberry\ -y
7z x bits\strawberry-perl-5.12.2.0-portable.zip -o%relax%\strawberry\ -y
echo DONE install strawberry perl

echo DONE unpacking tools in [%relax%]

:unpack source
echo START install wxWidgets...
7z x bits\wxMSW* -aoa -y -o%relax%\
mkdir c:\cygwin\opt\local\pgm
mklink /d c:\cygwin\opt\local\pgm\wxWidgets-2.8.11 c:\relax\wxMSW-2.8.11
echo DONE install wxWidgets

echo START install ICU...
start /wait 7z.exe x bits\icu* -aoa -o%relax%\
echo DONE install ICU

echo START install win32 OpenSSL...
:: now we build from source using %relax%/nasm and %relax%/strawberry later on
mkdir %RELAX%\openssl
mklink /d c:\openssl %RELAX%\openssl
mkdir %relax%\openssl
mklink /d c:\openssl %relax%\openssl
echo DONE install win32 OpenSSL source

echo START install NSIS...
start /wait %GLAZIER%\bits\nsis-2.46-setup.exe /S /D=%RELAX%\nsis
start /wait bits\nsis-2.46-setup.exe /s /d=%relax%\nsis
echo DONE install NSIS


echo START install Inno...
start /wait %GLAZIER%\bits\isetup-5.4.2-unicode.exe /silent /dir="%RELAX%\inno5"
start /wait bits\isetup-5.4.2-unicode.exe /silent /dir="%relax%\inno5"
echo DONE install Inno

echo START install NotepadPlus...
7z x -o%relax%\npp %GLAZIER%\bits\npp.5.8.7.bin.minimalist.7z
7z x bits\npp.5.8.7.bin.minimalist.7z -o%relax%\npp
echo DONE install NotepadPlus

:eof

This file was deleted.

This file was deleted.

This file was deleted.

46 bits/md5sums.txt 100644 → 100755
@@ -1,26 +1,20 @@
fcd1b1472302fc7283147f4df471f402 *7z465.exe
416f90afb31be9340676572a041fbdbf *apache-couchdb-1.0.3.tar.gz
6b4f85ab6f424867d2bed773f6dee6cf *apache-couchdb-1.1.0.tar.gz
8e0411224c978aaa449210637165072c *curl-7.21.7.zip
539d6ea0a145ea8f257fca682478f9dd *GRMSDK_EN_DVD.iso
1081c87025a5a507a55426ac59222b7a *GRMSDKX_EN_DVD.iso
98f421a999c9e41a4221ef7436b336c6 *icu4c-4_4_2-src.zip
83d242e108d0455e87830075bee49165 *imdiskinst.exe
018e04dfd1539529b05b43d5a932f7a4 *isetup-5.4.2-unicode.exe
f1f23d4df41c5da5444c97781ff2cab7 *junction.exe
15ed342443781bd70d8a09f06a03d5d3 *MozillaBuildSetup-Latest.exe
3768cfc7a8af33d7e3357d2af8fb7156 *npp.5.8.7.bin.minimalist.7z
5e02441c7f3fa4da4f4928a2d42a07c3 *nsis-2.46-setup.exe
7979e662d11476b97c462feb7c132fb7 *otp_src_R14B03.tar.gz
f701a6f58b187a02c54165310a810ab2 *setenv.exe
2ece86924bf59c82b3c1936760ef4631 *setup.exe
5b39aa309baf8633b475f25e23b75677 *tcltk85_win32_bin.tar.gz
35da2bf2befd998980a495b6f4f55e60 *vcredist_x86.exe
83b3292c1aa8e4d3eb0c6bcd66a55cd0 *VS2008ExpressWithSP1ENUX1504728.iso
ad14196b38470d927f438ab08e8f16b3 *wxMSW-2.8.11.zip
17e778a5f83cff4f32a50999a46ce5b5 *wxMSW-2.8.11_erlang_overlay.zip
40b6ea380cc8a5bf9734c2f8bf7e701e *openssl-1.0.0d.tar.gz
a4574365938222adca0a6bd33329cb32 *js185-1.0.0.tar.gz
0f2490f78d880ec184d9233df97ab83d *tracemonkey_57a6ad20eae9.tar.gz
41881cc6a7503748c9ea2b1580af2fd0 *strawberry-perl-5.12.2.0-portable.zip
23edf89e61f43dd9f47b01fa7fd7c3bd *nasm-2.09.07-win32.zip
fcd1b1472302fc7283147f4df471f402 *7z465.exe
cfdc2ab751bf18049c5ef7866602d8ed *apache-couchdb-1.0.3.tar.gz
907b763d3a14b6649bf0371ffa75a36b *apache-couchdb-1.1.0.tar.gz
8e0411224c978aaa449210637165072c *curl-7.21.7.zip
314e582264c36b3735466c522899aa07 *icu4c-4_4_2-src.tgz
018e04dfd1539529b05b43d5a932f7a4 *isetup-5.4.2-unicode.exe
a4574365938222adca0a6bd33329cb32 *js185-1.0.0.tar.gz
15ed342443781bd70d8a09f06a03d5d3 *MozillaBuildSetup-Latest.exe
23edf89e61f43dd9f47b01fa7fd7c3bd *nasm-2.09.07-win32.zip
5e02441c7f3fa4da4f4928a2d42a07c3 *nsis-2.46-setup.exe
40b6ea380cc8a5bf9734c2f8bf7e701e *openssl-1.0.0d.tar.gz
ce595447571128bc66f630a8fa13339a *otp_src_R14B01.tar.gz
7979e662d11476b97c462feb7c132fb7 *otp_src_R14B03.tar.gz
2ece86924bf59c82b3c1936760ef4631 *setup.exe
41881cc6a7503748c9ea2b1580af2fd0 *strawberry-perl-5.12.2.0-portable.zip
5b39aa309baf8633b475f25e23b75677 *tcltk85_win32_bin.tar.gz
0f2490f78d880ec184d9233df97ab83d *tracemonkey-57a6ad20eae9.tar.gz
35da2bf2befd998980a495b6f4f55e60 *vcredist_x86.exe
ad14196b38470d927f438ab08e8f16b3 *wxMSW-2.8.11.zip
17e778a5f83cff4f32a50999a46ce5b5 *wxMSW-2.8.11_erlang_overlay.zip
@@ -0,0 +1,58 @@
### list of all files needed for build chain ###################################
################################################################################
### wxWidgets and Erlang overlay
http://sourceforge.net/projects/wxwindows/files/2.8.11/wxMSW-2.8.11.zip
https://raw.github.com/dch/glazier/master/bits/wxMSW-2.8.11_erlang_overlay.zip

################################################################################
### tools to support erlang and couchdb build
http://downloads.sourceforge.net/sevenzip/7z465.exe
################################################################################
### stuff you might find useful
#bitvise_sshd_bits WinSSHD5-Inst.exe http://dl.bitvise.com/WinSSHD5-Inst.exe
#ramdisk imdiskinst.exe http://www.ltr-data.se/files/imdiskinst.exe
#notepadplus npp.5.8.7.bin.minimalist.7z http://downloads.sourceforge.net/project/notepad-plus/notepad%2B%2B%20releases%20binary/npp%205.8.7%20bin/npp.5.8.7.bin.minimalist.7z
################################################################################
### compilers and SDKs
http://strawberryperl.com/download/5.12.2.0/strawberry-perl-5.12.2.0-portable.zip
http://www.nasm.us/pub/nasm/releasebuilds/2.09.07/win32/nasm-2.09.07-win32.zip
http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe
http://www.cygwin.com/setup.exe
### vcredist is very carefully chosen to match SDK and VC++ latest patches
www.microsoft.com/download/en/details.aspx?id=26368
http://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x86.exe

### win7sdk_32bit GRMSDK_EN_DVD.iso
#http://download.microsoft.com/download/2/E/9/2E911956-F90F-4BFB-8231-E292A7B6F287/GRMSDK_EN_DVD.iso
### win7sdk_64bit GRMSDKX_EN_DVD.iso
#http://download.microsoft.com/download/2/E/9/2E911956-F90F-4BFB-8231-E292A7B6F287/GRMSDKX_EN_DVD.iso
### visual_studio_express VS2008ExpressWithSP1ENUX1504728.iso
#http://download.microsoft.com/download/E/8/E/E8EEB394-7F42-4963-A2D8-29559B738298/VS2008ExpressWithSP1ENUX1504728.iso
################################################################################
### OpenSSL and libcURL
http://www.openssl.org/source/openssl-1.0.0d.tar.gz
http://curl.haxx.se/download/curl-7.21.7.zip
################################################################################
### bits required to build erlang
http://www.erlang.org/download/otp_src_R14B03.tar.gz
http://www.erlang.org/download/otp_src_R14B01.tar.gz
http://download.sourceforge.net/project/nsis/NSIS%202/2.46/nsis-2.46-setup.exe
http://www.jrsoftware.org/download.php/is-unicode.exe
http://www.erlang.org/download/tcltk85_win32_bin.tar.gz
################################################################################
# bits required to build couch
### libicu icu4c-4_4_2-src.zip
# http://download.icu-project.org/files/icu4c/4.4.2/icu4c-4_4_2-src.zip
### libicu icu4c-4_4_2-src.tgz
http://download.icu-project.org/files/icu4c/4.4.2/icu4c-4_4_2-src.tgz
### nsis nsis-2.46-setup.exe
http://download.sourceforge.net/project/nsis/NSIS%202/2.46/nsis-2.46-setup.exe
### spidermonkey 57a6ad20eae9.tar.gz
http://hg.mozilla.org/tracemonkey/archive/57a6ad20eae9.tar.gz
### spidermonkey js185-1.0.0.tar.gz
http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
################################################################################
## CouchDB source
## not auto redirect but original link is from http://www.apache.org/dyn/closer.cgi?path=/couchdb/1.x.y/apache-couchdb-1.x.y.tar.gz
http://ftp.wayne.edu/apache/couchdb/1.0.3/apache-couchdb-1.0.3.tar.gz
http://ftp.wayne.edu/apache/couchdb/1.1.0/apache-couchdb-1.1.0.tar.gz

0 comments on commit 014397e

Please sign in to comment.