Navigation Menu

Skip to content

Commit

Permalink
consolidate scripts into single folder [c:\relax]
Browse files Browse the repository at this point in the history
- remove all %glazier% instances
- move all dependent tools into [c:\opt]
  • Loading branch information
dch committed May 22, 2012
1 parent d3a140c commit 30b98df
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 23 deletions.
11 changes: 5 additions & 6 deletions README.md
Expand Up @@ -85,12 +85,12 @@ The express solution is just to use 7zip to unpack [glazier tools](https://githu
inside `%relax%`. Or do it manually for the same result:

* Add 7zip from `c:\mozilla-build\7zip` to your path
* Innosoft's [isetup] to `%relax%/inno5`
* Nullsoft [NSIS] Installer to `%relax%/nsis`
* Innosoft's [isetup] to `c:\opt\inno5`
* Nullsoft [NSIS] Installer to `c:\opt\nsis`
* Add 7zip, Inno5, and nsis to the user environment PATH
* using 7zip, extract and rename [nasm] to `%relax%/nasm`
* using 7zip, extract and rename [cmake] to `%relax%/cmake`
* `mkdir strawberry && cd strawberry` then using 7zip, extract Strawberry [Perl]
* using 7zip, extract and rename [nasm] to `c:\opt\nasm`
* using 7zip, extract and rename [cmake] to `c:\opt\cmake`
* `mkdir c:\opt\strawberry && cd c:\opt\strawberry` then using 7zip, extract Strawberry [Perl]

[perl]: http://strawberryperl.com/download/5.12.2.0/strawberry-perl-5.12.2.0-portable.zip
[nasm]: http://www.nasm.us/pub/nasm/releasebuilds/2.09.07/win32/nasm-2.09.07-win32.zip
Expand Down Expand Up @@ -287,4 +287,3 @@ Let's pull the CouchDB source from git repo:
/relax/bin/couchdb_config.sh && /relax/bin/couchdb_build.sh

A few minutes later, the release binaries should be made available.

2 changes: 1 addition & 1 deletion bin/build_curl.cmd
@@ -1,7 +1,7 @@
::setlocal
path=%path%;%opt%\cmake\bin;c:\mozilla-build\7zip;%relax%\openssl\bin;

for %%i in ("%glazier%\bits\curl-*.zip") do set curl_ver=%%~ni
for %%i in ("%relax%\bits\curl-*.zip") do set curl_ver=%%~ni
setx CURL_VER %curl_ver%
set CURL_SRC=%RELAX%\%curl_ver%
setx CURL_SRC %curl_src%
Expand Down
2 changes: 1 addition & 1 deletion bin/build_icu.cmd
Expand Up @@ -7,7 +7,7 @@ setx ICU_PATH %icu_path%
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: ensure we have a fresh source tree to build from
if exist "%icu_path%" rd /s/q %icu_path%
7z x "%glazier%\bits\icu4c-*src.zip" -o%relax% -y
7z x "%relax%\bits\icu4c-*src.zip" -o%relax% -y
pushd %icu_path%
msbuild /m /p:Configuration=Release /p:Platform=Win32 /v:m /clp:summary %icu_path%\source\allinone\allinone.sln
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Expand Down
3 changes: 2 additions & 1 deletion bin/build_openssl.cmd
Expand Up @@ -6,14 +6,15 @@ path=%path%;c:\mozilla-build\7zip;%opt%\nasm;%opt%\strawberry\perl\bin;
:: extract bundle and name
:: stash SSL version
del /f/q "%TEMP%\openssl*.tar"
7z x "%glazier%\bits\openssl-*.tar.gz" -y -o"%TEMP%"
7z x "%relax%\bits\openssl-*.tar.gz" -y -o"%TEMP%"

:: get the version of OpenSSL into the environment
for %%i in ("%TEMP%\openssl-*.tar") do set openssl_ver=%%~ni
setx openssl_ver %openssl_ver%
set SSL_PATH=%relax%\openssl
setx SSL_PATH %ssl_path%

pause
if exist "%ssl_path%" rd /s/q %ssl_path%
:: set up a softlink for openssl as Erlang seems to dumb to find it
if not exist c:\openssl mklink /d c:\openssl "%relax%\openssl"
Expand Down
6 changes: 3 additions & 3 deletions bin/build_wx.cmd
Expand Up @@ -3,14 +3,14 @@ path=%path%;c:\mozilla-build\7zip;
:: read the version of wxWidgets from the wxMSW source distribution
:: wx_ver is used later on only in this script to set up a softlink
:: so that Erlang finds it in the correct location
for %%i in ("%glazier%\bits\wxMSW*.zip") do set wx_src=%%~ni
for %%i in ("%relax%\bits\wxMSW*.zip") do set wx_src=%%~ni
set wx_ver=%wx_src:wxmsw=wxWidgets%
setx wx_ver %wx_ver%
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
if exist c:\cygwin\opt\local\pgm\%wx_ver% goto build
if exist %relax%\%wx_src% goto build
7z.exe x %glazier%\bits\wxMSW* -aoa -y -o%relax%\
7z.exe x %relax%\bits\wxMSW* -aoa -y -o%relax%\
mkdir c:\cygwin\opt\local\pgm > NUL: 2>&1
mklink /d c:\cygwin\opt\local\pgm\%wx_ver% %relax%\%wx_src%
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Expand All @@ -21,7 +21,7 @@ mklink /d c:\cygwin\opt\local\pgm\%wx_ver% %relax%\%wx_src%
:: lib\vc_lib\msw\wx\setup.h VC++ static, wxMSW
:: lib\vc_lib\mswud\wx\setup.h VC++ static, wxMSW, Unicode, debug
:: lib\vc_lib\mswunivd\wx\setup.h VC++ static, wxUniversal, debug
type %glazier%\bits\wxwidgets_setup.h >> %relax%\%wx_src%\include\wx\msw\setup.h
type %relax%\bits\wxwidgets_setup.h >> %relax%\%wx_src%\include\wx\msw\setup.h

nmake BUILD=release SHARED=0 UNICODE=1 USE_OPENGL=1 USE_GDIPLUS=1 DIR_SUFFIX_CPU= -f makefile.vc
pushd %RELAX%\%wx_src%\build\msw
Expand Down
2 changes: 1 addition & 1 deletion bin/build_zlib.cmd
Expand Up @@ -2,7 +2,7 @@ setlocal
path=%path%;c:\mozilla-build\7zip;%opt%\nasm;%opt%\strawberry\perl\bin;
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: clean up existing installs
7z x "%glazier%\bits\zlib-*.zip" -y -o%glazier%
7z x "%relax%\bits\zlib-*.zip" -y -o%relax%
for %%i in ("%") do set zlib_ver=%%~ni
if defined zlib_ver rd /s/q %relax%\%zlib_ver%
setx zlib_ver %zlib_ver%
Expand Down
4 changes: 2 additions & 2 deletions bin/erl_config.sh
Expand Up @@ -4,6 +4,6 @@ pushd $ERL_TOP
# from Erlang/OTP R14B03 onwards, Erlang by default is built with
# *static* OpenSSL. Uncomment following, and change build_openssl.cmd
# to revert this.
./otp_build configure --enable-dynamic-ssl-lib --with-ssl=$RELAX/openssl 2>&1 | tee $ERL_TOP/build_configure.txt
## ./otp_build configure --with-ssl=/relax/openssl 2>&1 | tee $ERL_TOP/build_configure.txt
## ./otp_build configure --enable-dynamic-ssl-lib --with-ssl=/cygdrive/c/openssl 2>&1 | tee $ERL_TOP/build_configure.txt
./otp_build configure --with-ssl --without-javac 2>&1 | tee $ERL_TOP/build_configure.txt
popd
8 changes: 3 additions & 5 deletions bin/shell.cmd
Expand Up @@ -28,11 +28,9 @@ if not defined ZLIB_PATH set ZLIB_PATH=%RELAX%\zlib
:: werldir for building erlang

if not defined OPT set OPT=c:\opt
if not defined GLAZIER set GLAZIER=%~dp0
if not defined RELAX set RELAX=%d0\relax
if not defined WERLDIR set WERLDIR=%d0\werl
if not defined RELAX set RELAX=c:\relax
if not defined WERLDIR set WERLDIR=c:\werl
setx OPT %OPT% > NUL:
setx GLAZIER %GLAZIER% > NUL:
setx RELAX %RELAX% > NUL:

set LIB=%OPT%\VC\VC\lib;%OPT%\SDK\lib;%LIB%
Expand Down Expand Up @@ -92,7 +90,7 @@ title Building in %ERL_TOP% with OTP %OTP_REL% and Erlang v%ERTS_VSN%
pushd %WERL%\
for /f "usebackq" %%i in (`c:\cygwin\bin\cygpath.exe %WERLDIR%`) do @set WERL_PATH=%%i
set ERL_TOP=%WERL_PATH%/otp_src_%OTP_REL%
c:\cygwin\bin\bash %GLAZIER%\bin\shell.sh
c:\cygwin\bin\bash %relax%\bin\shell.sh
goto eof

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Expand Down
6 changes: 3 additions & 3 deletions bin/shell.sh
Expand Up @@ -44,10 +44,10 @@ PATH=$PATH:/cygdrive/c/openssl/bin:/cygdrive/c/opt/nsis:/cygdrive/c/opt/inno5
PATH=$PATH:/usr/local/bin:/usr/bin:/bin

# then glazier tools
PATH=$PATH:`/usr/bin/cygpath $GLAZIER`/bin:`/usr/bin/cygpath $GLAZIER`/bits
PATH=$PATH:`/usr/bin/cygpath $RELAX`/bin:`/usr/bin/cygpath $RELAX`/bits

# then windows
PATH=$PATH:`/usr/bin/cygpath $WINDIR`/system32:`/usr/bin/cygpath $WINDIR`:`/usr/bin/cygpath $WINDIR`/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
PATH=$PATH:`/usr/bin/cygpath $WINDIR`/system32:`/usr/bin/cygpath $WINDIR`:`/usr/bin/cygpath $WINDIR`/System32/Wbem:`/usr/bin/cygpath $WINDIR`/system32/WindowsPowerShell/v1.0

# remaining settings from otp_build env_win32 script
OVERRIDE_TARGET="win32"
Expand All @@ -66,7 +66,7 @@ RC_SH_DEBUG_LOG=$TMP/rc_r$OTP_VER.log
MD_SH_DEBUG_LOG=$TMP/md_r$OTP_VER.log
MC_SH_DEBUG_LOG=$TMP/mc_r$OTP_VER.log

export OVERRIDE_TARGET CC CXX AR RANLIB OVERRIDE_CONFIG_CACHE_STATIC OVERRIDE_CONFIG_CACHE INCLUDE LIB LIBPATH LINK CL PATH TMP CC_SH LD_SH RC_SH MD_SH MC_SH ERL_TOP ERTS_VSN OTP_VER SHELL RELAX GLAZIER WIN32_WRAPPER_PATH OVERRIDE_TARGET
export OVERRIDE_TARGET CC CXX AR RANLIB OVERRIDE_CONFIG_CACHE_STATIC OVERRIDE_CONFIG_CACHE INCLUDE LIB LIBPATH LINK CL PATH TMP CC_SH LD_SH RC_SH MD_SH MC_SH ERL_TOP ERTS_VSN OTP_VER SHELL RELAX WIN32_WRAPPER_PATH OVERRIDE_TARGET

# ensure we have an ERL_TOP to go to
mkdir -p $ERL_TOP > /dev/null 2>&1
Expand Down

0 comments on commit 30b98df

Please sign in to comment.