fixed mkrelease script to use buildwin

This commit is contained in:
Guenter Obiltschnig 2008-09-26 09:45:24 +00:00
parent 2a26ce18d0
commit a55726017c

View File

@ -1,6 +1,6 @@
#! /bin/sh
#
# $Id: //poco/1.3/release/script/mkrelease#3 $
# $Id: //poco/1.3/release/script/mkrelease#7 $
#
# mkrelease
#
@ -103,8 +103,7 @@ cp ${POCO_BASE}/build/script/makeldpath ${target}/build/script
cp ${POCO_BASE}/build/script/shlibln ${target}/build/script
cp ${POCO_BASE}/build/script/projname ${target}/build/script
cp ${POCO_BASE}/build/vms/* ${target}/build/vms
cp ${POCO_BASE}/dist/build_vs71.cmd ${target}
cp ${POCO_BASE}/dist/build_vs80.cmd ${target}
cp ${POCO_BASE}/dist/buildwin.cmd ${target}
cp ${POCO_BASE}/dist/configure ${target}
cp ${POCO_BASE}/buildvms.com ${target}
cp ${POCO_BASE}/libversion ${target}
@ -292,21 +291,29 @@ echo "" >>${target}/Makefile
echo "clean:" >>${target}/Makefile
for comp in $comps ;
do
echo '\t$(MAKE) -C $(POCO_BASE)'/${comp} clean >>${target}/Makefile
cat >>${target}/Makefile <<ENDOFSCRIPT
\$(MAKE) -C \$(POCO_BASE)/${comp} clean
ENDOFSCRIPT
if [ -f ${POCO_BASE}/${comp}/testsuite/Makefile ] ; then
echo '\t$(MAKE) -C $(POCO_BASE)'/${comp}/testsuite clean >>${target}/Makefile
cat >>${target}/Makefile <<ENDOFSCRIPT
\$(MAKE) -C \$(POCO_BASE)/${comp}/testsuite clean
ENDOFSCRIPT
fi
if [ -f ${POCO_BASE}/${comp}/samples/Makefile ] ; then
echo '\t$(MAKE) -C $(POCO_BASE)'/${comp}/samples clean >>${target}/Makefile
cat >>${target}/Makefile <<ENDOFSCRIPT
\$(MAKE) -C \$(POCO_BASE)/${comp}/samples clean
ENDOFSCRIPT
fi
done
echo "" >>${target}/Makefile
echo "distclean:" >>${target}/Makefile
echo '\trm -rf $(POCO_BUILD)/lib' >>${target}/Makefile
echo '\tfind $(POCO_BUILD) -name obj -type d -print0 | xargs -0 rm -rf' >>${target}/Makefile
echo '\tfind $(POCO_BUILD) -name .dep -type d -print0 | xargs -0 rm -rf' >>${target}/Makefile
echo '\tfind $(POCO_BUILD) -name bin -type d -print0 | xargs -0 rm -rf' >>${target}/Makefile
cat >>${target}/Makefile <<ENDOFSCRIPT
distclean:
rm -rf \$(POCO_BUILD)/lib
find \$(POCO_BUILD) -name obj -type d -print0 | xargs -0 rm -rf
find \$(POCO_BUILD) -name .dep -type d -print0 | xargs -0 rm -rf
find \$(POCO_BUILD) -name bin -type d -print0 | xargs -0 rm -rf
ENDOFSCRIPT
#
@ -314,159 +321,27 @@ echo '\tfind $(POCO_BUILD) -name bin -type d -print0 | xargs -0 rm -rf' >>${targ
#
cat >${target}/build_vs71.cmd <<'ENDOFSCRIPT'
@echo off
rem
rem build_vs71.cmd
rem
rem command-line build script for VS 7.1 [generated by mkrelease]
rem
rem Change OPENSSL_DIR to match your setup
set OPENSSL_DIR=c:\OpenSSL
set OPENSSL_INCLUDE=%OPENSSL_DIR%\include
set OPENSSL_LIB=%OPENSSL_DIR%\lib\VC
set INCLUDE=%INCLUDE%;%OPENSSL_INCLUDE%
set LIB=%LIB%;%OPENSSL_LIB%
set POCOBASE=%CD%
set PATH=%POCOBASE%\bin;%PATH%
cd CppUnit
devenv /useenv /rebuild debug_shared CppUnit_vs71.sln
devenv /useenv /rebuild release_shared CppUnit_vs71.sln
cd %POCOBASE%
buildwin 71 shared both yes
ENDOFSCRIPT
for comp in $comps ;
do
cat >>${target}/build_vs71.cmd <<ENDOFSCRIPT
cd ${comp}
devenv /useenv /rebuild debug_shared `basename ${comp}_vs71.sln`
devenv /useenv /rebuild release_shared `basename ${comp}_vs71.sln`
cd %POCOBASE%
ENDOFSCRIPT
done
for comp in $comps ;
do
if [ -d "${POCO_BASE}/${comp}/samples" ] ; then
cat >>${target}/build_vs71.cmd <<ENDOFSCRIPT
cd ${comp}/samples
devenv /useenv /rebuild debug_shared samples_vs71.sln
devenv /useenv /rebuild release_shared samples_vs71.sln
cd %POCOBASE%
ENDOFSCRIPT
fi
done
#
# Create Visual Studio 8 buils script
#
cat >${target}/build_vs80.cmd <<'ENDOFSCRIPT'
@echo off
rem
rem build_vs80.cmd
rem
rem command-line build script for VS 8 [generated by mkrelease]
rem
rem Change OPENSSL_DIR to match your setup
set OPENSSL_DIR=c:\OpenSSL
set OPENSSL_INCLUDE=%OPENSSL_DIR%\include
set OPENSSL_LIB=%OPENSSL_DIR%\lib\VC
set INCLUDE=%INCLUDE%;%OPENSSL_INCLUDE%
set LIB=%LIB%;%OPENSSL_LIB%
set POCOBASE=%CD%
set PATH=%POCOBASE%\bin;%PATH%
cd CppUnit
devenv /useenv /rebuild debug_shared CppUnit_vs80.sln
devenv /useenv /rebuild release_shared CppUnit_vs80.sln
cd %POCOBASE%
buildwin 80 shared both yes
ENDOFSCRIPT
for comp in $comps ;
do
cat >>${target}/build_vs80.cmd <<ENDOFSCRIPT
cd ${comp}
devenv /useenv /rebuild debug_shared `basename ${comp}_vs80.sln`
devenv /useenv /rebuild release_shared `basename ${comp}_vs80.sln`
cd %POCOBASE%
ENDOFSCRIPT
done
for comp in $comps ;
do
if [ -d "${POCO_BASE}/${comp}/samples" ] ; then
cat >>${target}/build_vs80.cmd <<ENDOFSCRIPT
cd ${comp}/samples
devenv /useenv /rebuild debug_shared samples_vs80.sln
devenv /useenv /rebuild release_shared samples_vs80.sln
cd %POCOBASE%
ENDOFSCRIPT
fi
done
#
# Create Visual Studio 9 buils script
#
cat >${target}/build_vs90.cmd <<'ENDOFSCRIPT'
@echo off
rem
rem build_vs90.cmd
rem
rem command-line build script for VS 9 [generated by mkrelease]
rem
rem Change OPENSSL_DIR to match your setup
set OPENSSL_DIR=c:\OpenSSL
set OPENSSL_INCLUDE=%OPENSSL_DIR%\include
set OPENSSL_LIB=%OPENSSL_DIR%\lib\VC
set INCLUDE=%INCLUDE%;%OPENSSL_INCLUDE%
set LIB=%LIB%;%OPENSSL_LIB%
set POCOBASE=%CD%
set PATH=%POCOBASE%\bin;%PATH%
cd CppUnit
devenv /useenv /rebuild debug_shared CppUnit_vs90.sln
devenv /useenv /rebuild release_shared CppUnit_vs90.sln
cd %POCOBASE%
buildwin 90 shared both yes
ENDOFSCRIPT
for comp in $comps ;
do
cat >>${target}/build_vs90.cmd <<ENDOFSCRIPT
cd ${comp}
devenv /useenv /rebuild debug_shared `basename ${comp}_vs90.sln`
devenv /useenv /rebuild release_shared `basename ${comp}_vs90.sln`
cd %POCOBASE%
ENDOFSCRIPT
done
for comp in $comps ;
do
if [ -d "${POCO_BASE}/${comp}/samples" ] ; then
cat >>${target}/build_vs90.cmd <<ENDOFSCRIPT
cd ${comp}/samples
devenv /useenv /rebuild debug_shared samples_vs90.sln
devenv /useenv /rebuild release_shared samples_vs90.sln
cd %POCOBASE%
ENDOFSCRIPT
fi
done
#
# Fix line endings