; TOFIX: dos/owatcom builds can now created successfully
(using standard Open Watcom 1.8 installation),
the bad news is that f.e. hbmk2 will crash the
NTVDM when trying a simple make.
* INSTALL
! Minor fix to DOS instructions.
+ Added DOS build examples.
* mpkg_dos.bat
! Fixed target dir and archive name to be different
for djgpp and owatcom builds.
* make_gnu.bat
+ config/djg-make.exe
+ Added embedded copy of DOS build of GNU Make.
This is to make DOS builds, specifically dos/owatcom
builds simpler. Original filename was 'make.exe'.
This can probably be removed once we move DOS
platform status to a 'target-only' one, like WinCE/ARM.
* make_gnu.bat
! Ugly hack added to create doc/en-EN dir. This still
won't solve the DOS copy problem unless I remove
the hack committed previously. If I remove it
the make process cannot be anymore started without
this batch file as it would choke on xcopy if
above dir doesn't exist.
* make_gnu.sh
! Applied fix to only create install dirs if called
with 'install' option. At the same time enabled
this feature for all platforms. It will also create
doc/en-EN dir.
PLEASE TEST/REVIEW, I didn't do any testing.
; TOFIX: Much or all of these should IMO be done directly
from make files, it would be much self-contained
and consistent.
* source/pp/Makefile
! Fixed to find ChangeLog when building for DOS targets.
This was a problem when trying to build dos/owatcom.
Now in DOS mode it will refer to the ChangeLog by its
8.3 name.
* utils/hbmk2/hbmk2.prg
* Minor formatting.
* mpkg_deb.sh
* harbour.spec
- Deleted hbmsql.
; TOFIX: hbqt is missing from some Linux make files.
; TOFIX: (in next major release) We should try to
make Linux build files less-maintenance intensive.
74 lines
1.9 KiB
Batchfile
74 lines
1.9 KiB
Batchfile
@rem
|
|
@rem $Id$
|
|
@rem
|
|
|
|
@echo off
|
|
|
|
rem ---------------------------------------------------------------
|
|
rem Installer creator for Harbour Project
|
|
rem
|
|
rem Copyright 2009 Viktor Szakats (harbour.01 syenar.hu)
|
|
rem See COPYING for licensing terms.
|
|
rem
|
|
rem This script requires:
|
|
rem - Windows NT or upper
|
|
rem - Info-ZIP zip.exe in PATH
|
|
rem https://sourceforge.net/project/showfiles.php?group_id=118012
|
|
rem - HB_COMPILER envvar configured (see INSTALL doc)
|
|
rem - C compiler and GNU Make configured (see INSTALL doc)
|
|
rem ---------------------------------------------------------------
|
|
|
|
if not "%OS%" == "Windows_NT" goto END
|
|
|
|
setlocal
|
|
|
|
rem ; Basic setup
|
|
set HB_VERSION=200
|
|
if "%HB_ARCHITECTURE%" == "" set HB_ARCHITECTURE=dos
|
|
set HB_PKGNAME=hb%HB_VERSION%%HB_COMPILER:~0,2%
|
|
set HB_DIRNAME=%HB_PKGNAME%
|
|
|
|
rem ; Dir setup
|
|
set HB_INSTALL_BASE=%~dp0_hb_inst
|
|
set HB_INSTALL_PREFIX=%HB_INSTALL_BASE%\%HB_DIRNAME%
|
|
set HB_BIN_INSTALL=%HB_INSTALL_PREFIX%\bin
|
|
set HB_LIB_INSTALL=%HB_INSTALL_PREFIX%\lib
|
|
set HB_INC_INSTALL=%HB_INSTALL_PREFIX%\include
|
|
set HB_DOC_INSTALL=%HB_INSTALL_PREFIX%\doc
|
|
|
|
rem ; Pre-build cleanup
|
|
if exist %HB_INSTALL_PREFIX% rmdir /q /s %HB_INSTALL_PREFIX%
|
|
|
|
rem ; Option setup
|
|
set HB_BUILD_OPTIM=yes
|
|
set HB_BUILD_DEBUG=no
|
|
|
|
rem ; Build Harbour
|
|
call make_gnu.bat clean install
|
|
|
|
rem if errorlevel 1 goto MK_ERROR
|
|
|
|
rem ; Post-build installation
|
|
xcopy /D /Y ChangeLog* "%HB_INSTALL_PREFIX%\"
|
|
xcopy /D /Y COPYING "%HB_INSTALL_PREFIX%\"
|
|
xcopy /D /Y ERRATA "%HB_INSTALL_PREFIX%\"
|
|
xcopy /D /Y INSTALL "%HB_INSTALL_PREFIX%\"
|
|
xcopy /D /Y TODO "%HB_INSTALL_PREFIX%\"
|
|
|
|
rem ; Build .zip package
|
|
if exist %HB_PKGNAME%.zip del %HB_PKGNAME%.zip
|
|
pushd
|
|
cd %HB_INSTALL_BASE%
|
|
zip -9 -X -r -o %~dp0%HB_PKGNAME%.zip . -i %HB_DIRNAME%\*
|
|
popd
|
|
|
|
:MK_ERROR
|
|
|
|
rem ; Cleanup
|
|
if "%1" == "--deltemp" rmdir /q /s %HB_INSTALL_PREFIX%
|
|
if "%1" == "--deltemp" rmdir /q %HB_INSTALL_BASE%
|
|
|
|
endlocal
|
|
|
|
:END
|