2007-09-13 20:10 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/make_b32.bat
* set svn:eol-style to CRLF
This commit is contained in:
@@ -1,91 +1,91 @@
|
||||
@echo off
|
||||
rem
|
||||
rem $Id$
|
||||
rem
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
rem This is a generic template file, if it doesn't fit your own needs
|
||||
rem please DON'T MODIFY IT.
|
||||
rem
|
||||
rem Instead, make a local copy and modify that one, or make a call to
|
||||
rem this batch file from your customized one. [vszakats]
|
||||
rem
|
||||
rem Set any of the below settings to customize your build process:
|
||||
rem set HB_BUILD_MODE=P
|
||||
rem set HB_BUILD_DLL=yes
|
||||
rem set HB_BUILD_DEBUG=yes
|
||||
rem set HB_BUILD_VERBOSE=yes
|
||||
rem set HB_REBUILD_PARSER=yes
|
||||
rem set HB_MAKE_PROGRAM=
|
||||
rem set HB_MAKE_FLAGS=
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
if "%HB_MAKE_PROGRAM%" == "" set HB_MAKE_PROGRAM=make.exe
|
||||
|
||||
rem Save the user value, force silent file overwrite with COPY
|
||||
rem (not all Windows versions support the COPY /Y flag)
|
||||
set HB_ORGENV_COPYCMD=%COPYCMD%
|
||||
set COPYCMD=/Y
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
rem IMPORTANT ! It has to be declared here
|
||||
if "%CC_DIRNAME%" == "" set CC_DIRNAME=b32
|
||||
if "%HB_GT_LIB%" == "" set HB_GT_LIB=gtwin
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
if "%1" == "clean" goto CLEAN
|
||||
if "%1" == "CLEAN" goto CLEAN
|
||||
|
||||
if "%1" == "install" goto INSTALL
|
||||
if "%1" == "INSTALL" goto INSTALL
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
:BUILD
|
||||
|
||||
%HB_MAKE_PROGRAM% %HB_MAKE_FLAGS% -r -fmakefile.bc %1 %2 %3 > make_%CC_DIRNAME%.log
|
||||
if errorlevel 1 goto BUILD_ERR
|
||||
goto EXIT
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
:BUILD_ERR
|
||||
|
||||
notepad make_%CC_DIRNAME%.log
|
||||
goto EXIT
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
:CLEAN
|
||||
|
||||
%HB_MAKE_PROGRAM% %HB_MAKE_FLAGS% -f makefile.bc CLEAN > make_%CC_DIRNAME%.log
|
||||
|
||||
rem In this case, the makefile handles most cleanup.
|
||||
|
||||
if exist make_%CC_DIRNAME%.log del make_%CC_DIRNAME%.log > nul
|
||||
if exist inst_%CC_DIRNAME%.log del inst_%CC_DIRNAME%.log > nul
|
||||
|
||||
goto EXIT
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
:INSTALL
|
||||
|
||||
if "%HB_INSTALL_PREFIX%" == "" set HB_INSTALL_PREFIX=.
|
||||
|
||||
if "%HB_BIN_INSTALL%" == "" set HB_BIN_INSTALL=%HB_INSTALL_PREFIX%\bin
|
||||
if "%HB_INC_INSTALL%" == "" set HB_INC_INSTALL=%HB_INSTALL_PREFIX%\include
|
||||
if "%HB_LIB_INSTALL%" == "" set HB_LIB_INSTALL=%HB_INSTALL_PREFIX%\lib
|
||||
|
||||
%HB_MAKE_PROGRAM% %HB_MAKE_FLAGS% -f makefile.bc INSTALL > nul
|
||||
goto EXIT
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
:EXIT
|
||||
rem Restore user value
|
||||
set COPYCMD=%HB_ORGENV_COPYCMD%
|
||||
set HB_ORGENV_COPYCMD=
|
||||
set CC_DIRNAME=
|
||||
@echo off
|
||||
rem
|
||||
rem $Id$
|
||||
rem
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
rem This is a generic template file, if it doesn't fit your own needs
|
||||
rem please DON'T MODIFY IT.
|
||||
rem
|
||||
rem Instead, make a local copy and modify that one, or make a call to
|
||||
rem this batch file from your customized one. [vszakats]
|
||||
rem
|
||||
rem Set any of the below settings to customize your build process:
|
||||
rem set HB_BUILD_MODE=P
|
||||
rem set HB_BUILD_DLL=yes
|
||||
rem set HB_BUILD_DEBUG=yes
|
||||
rem set HB_BUILD_VERBOSE=yes
|
||||
rem set HB_REBUILD_PARSER=yes
|
||||
rem set HB_MAKE_PROGRAM=
|
||||
rem set HB_MAKE_FLAGS=
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
if "%HB_MAKE_PROGRAM%" == "" set HB_MAKE_PROGRAM=make.exe
|
||||
|
||||
rem Save the user value, force silent file overwrite with COPY
|
||||
rem (not all Windows versions support the COPY /Y flag)
|
||||
set HB_ORGENV_COPYCMD=%COPYCMD%
|
||||
set COPYCMD=/Y
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
rem IMPORTANT ! It has to be declared here
|
||||
if "%CC_DIRNAME%" == "" set CC_DIRNAME=b32
|
||||
if "%HB_GT_LIB%" == "" set HB_GT_LIB=gtwin
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
if "%1" == "clean" goto CLEAN
|
||||
if "%1" == "CLEAN" goto CLEAN
|
||||
|
||||
if "%1" == "install" goto INSTALL
|
||||
if "%1" == "INSTALL" goto INSTALL
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
:BUILD
|
||||
|
||||
%HB_MAKE_PROGRAM% %HB_MAKE_FLAGS% -r -fmakefile.bc %1 %2 %3 > make_%CC_DIRNAME%.log
|
||||
if errorlevel 1 goto BUILD_ERR
|
||||
goto EXIT
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
:BUILD_ERR
|
||||
|
||||
notepad make_%CC_DIRNAME%.log
|
||||
goto EXIT
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
:CLEAN
|
||||
|
||||
%HB_MAKE_PROGRAM% %HB_MAKE_FLAGS% -f makefile.bc CLEAN > make_%CC_DIRNAME%.log
|
||||
|
||||
rem In this case, the makefile handles most cleanup.
|
||||
|
||||
if exist make_%CC_DIRNAME%.log del make_%CC_DIRNAME%.log > nul
|
||||
if exist inst_%CC_DIRNAME%.log del inst_%CC_DIRNAME%.log > nul
|
||||
|
||||
goto EXIT
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
:INSTALL
|
||||
|
||||
if "%HB_INSTALL_PREFIX%" == "" set HB_INSTALL_PREFIX=.
|
||||
|
||||
if "%HB_BIN_INSTALL%" == "" set HB_BIN_INSTALL=%HB_INSTALL_PREFIX%\bin
|
||||
if "%HB_INC_INSTALL%" == "" set HB_INC_INSTALL=%HB_INSTALL_PREFIX%\include
|
||||
if "%HB_LIB_INSTALL%" == "" set HB_LIB_INSTALL=%HB_INSTALL_PREFIX%\lib
|
||||
|
||||
%HB_MAKE_PROGRAM% %HB_MAKE_FLAGS% -f makefile.bc INSTALL > nul
|
||||
goto EXIT
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
:EXIT
|
||||
rem Restore user value
|
||||
set COPYCMD=%HB_ORGENV_COPYCMD%
|
||||
set HB_ORGENV_COPYCMD=
|
||||
set CC_DIRNAME=
|
||||
|
||||
Reference in New Issue
Block a user