Files
harbour-core/harbour/bin/postinst.bat
Viktor Szakats d394df5105 2009-05-25 10:11 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* doc/howtosvn.txt
    * Deleted sections dealing with sending commit e-mails.

  * doc/dirstruc.txt
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.prg
  * utils/hbi18n/hbi18n.prg
    * Shuffling extensions:
      .hbl -> .hbi (Harbour i18n)
      .hbp -> .hbl (Harbour Library)
      .hbm -> (unchanged) (Harbour Make)
      .hbt -> .hbp (Harbour Project)

  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.prg
    + Added reference to -b switch to -debug switch description.
    + Added _HBMK_EMBEDDED_ mode (like in hbformat).
    + Accepting .hbp files (same format as .hbm) on the command
      line (top level). .hbp refers to "Harbour project file".
      Similar function to recent experimental .hbt files, but not
      embeddable.
    * Minor tweak to HB_SHARED envvar reading code.
    * Changed -nohbp switch to -nohbl.
    * Changed -hbl switch to -hbi.

      Updated usage:
      There are three ways to do multitarget hbmk2 sessions:
      1.) hbmk2 [<common_params1>] -target=target1[.hbm|.prg] [<common_params2>] -target=target2[.hbm|.prg] [<common_params3>]
          Examples:
             hbmk2 -target=prog1 -target=prog2 -target=prog3
             hbmk2 -target=prog1.prg -target=prog2.prg -target=prog3.prg
             hbmk2 -target=mylib1.hbm -target=mylib2.hbm -target=myapp.hbm
             hbmk2 -trace -pause -target=mylib1.hbm -target=mylib2.hbm -target=myapp.hbm -beep
      2.) hbmk2 [<common_params1>] -target <target1_params> -target <target2_params> [-notarget <common_params2>]
          Examples:
             hbmk2 -target hello1.prg -target hello2.prg
             hbmk2 -trace -target hello1.prg -target hello2.prg
             hbmk2 -trace -target hello1.prg -target hello2.prg -notarget -beep
      3.) hbmk2 [<common_params1>] target1.hbp [<common_params2>] target2.hbp [<common_params3>]
          where .hbp is an .hbm file just with an .hbp extension.
          Examples:
             hbmk2 mylib1.hbp mylib.hbp myapp.hbp
             hbmk2 -trace -pause mylib1.hbp mylib2.hbp myapp.hbp -beep

   + utils/hbmk2/examples/hmg.hbl
   + utils/hbmk2/examples/whoo.hbl
   + utils/hbmk2/examples/xbgtk.hbl
   - utils/hbmk2/examples/hmg.hbp
   - utils/hbmk2/examples/whoo.hbp
   - utils/hbmk2/examples/xbgtk.hbp
   + utils/hbmk2/examples/hwgui.hbl
   + utils/hbmk2/examples/fwh.hbl
   + utils/hbmk2/examples/xhgtk.hbl
   - utils/hbmk2/examples/hwgui.hbp
   - utils/hbmk2/examples/fwh.hbp
   - utils/hbmk2/examples/xhgtk.hbp
   + utils/hbmk2/examples/c4w.hbl
   + utils/hbmk2/examples/contrib.hbl
   - utils/hbmk2/examples/c4w.hbp
   - utils/hbmk2/examples/contrib.hbp
   + utils/hbmk2/examples/contribf.hbl
   - utils/hbmk2/examples/contribf.hbp
   + contrib/gtalleg/tests/gtallegs.hbl
   + contrib/gtalleg/tests/gtallegd.hbl
   - contrib/gtalleg/tests/gtallegs.hbp
   - contrib/gtalleg/tests/gtallegd.hbp
   + contrib/hbmysql/utils/hbmysql.hbl
   - contrib/hbmysql/utils/hbmysql.hbp
   + contrib/hbmysql/tests/hbmysql.hbl
   - contrib/hbmysql/tests/hbmysql.hbp
   + contrib/hbct/tests/hbct.hbl
   - contrib/hbct/tests/hbct.hbp
   + contrib/xhb/tests/xhb.hbl
   - contrib/xhb/tests/xhb.hbp
   + contrib/hbodbc/tests/hbodbc.hbl
   - contrib/hbodbc/tests/hbodbc.hbp
   + contrib/hbtpathy/tests/hbtpathy.hbl
   - contrib/hbtpathy/tests/hbtpathy.hbp
   + contrib/hbmsql/tests/hbmsql.hbl
   - contrib/hbmsql/tests/hbmsql.hbp
   - contrib/hbmzip/tests/hbmzip.hbp
   + contrib/hbmzip/tests/hbmzip.hbl
   - contrib/hbsqlit3/tests/hbsqlit3.hbp
   + contrib/hbsqlit3/tests/hbsqlit3.hbl
   + contrib/hbblat/tests/hbblat.hbl
   - contrib/hbblat/tests/hbblat.hbp
   + contrib/hbqt/tests/hbqt.hbl
   - contrib/hbqt/tests/hbqt.hbp
   + contrib/hbfbird/tests/hbfbird.hbl
   - contrib/hbfbird/tests/hbfbird.hbp
   + contrib/hbziparc/tests/hbziparc.hbl
   - contrib/hbziparc/tests/hbziparc.hbp
   + contrib/hbnf/tests/hbnf.hbl
   - contrib/hbnf/tests/hbnf.hbp
   + contrib/hbcurl/tests/hbcurl.hbl
   - contrib/hbcurl/tests/hbcurl.hbp
   + contrib/gtqtc/tests/gtqtc.hbl
   - contrib/gtqtc/tests/gtqtc.hbp
   + contrib/rddsql/sddmy/tests/sddmy.hbl
   - contrib/rddsql/sddmy/tests/sddmy.hbp
   - contrib/rddsql/tests/rddsql.hbp
   + contrib/rddsql/tests/rddsql.hbl
   + contrib/rddsql/sddodbc/tests/sddodbc.hbl
   - contrib/rddsql/sddodbc/tests/sddodbc.hbp
   + contrib/hbhpdf/tests/hbhpdf.hbl
   - contrib/hbhpdf/tests/hbhpdf.hbp
   + contrib/rddado/tests/rddado.hbl
   - contrib/rddado/tests/rddado.hbp
   + contrib/gtwvg/tests/gtwvg.hbl
   - contrib/gtwvg/tests/gtwvg.hbp
   + contrib/hbpgsql/tests/hbpgsql.hbl
   - contrib/hbpgsql/tests/hbpgsql.hbp
   + contrib/rddads/tests/rddads.hbl
   - contrib/rddads/tests/rddads.hbp
   + contrib/hbclipsm/tests/hbclipsm.hbl
   - contrib/hbclipsm/tests/hbclipsm.hbp
   + contrib/hbfimage/tests/hbfimage.hbl
   - contrib/hbfimage/tests/hbfimage.hbp
   + contrib/hbgd/tests/hbgd.hbl
   - contrib/hbgd/tests/hbgd.hbp
   + contrib/hbmisc/tests/hbmisc.hbl
   - contrib/hbmisc/tests/hbmisc.hbp
   + contrib/hbtip/tests/hbtip.hbl
   - contrib/hbtip/tests/hbtip.hbp
   - contrib/hbwin/tests/hbwin.hbp
   + contrib/hbwin/tests/hbwin.hbl
   - contrib/hbvpdf/tests/hbvpdf.hbp
   + contrib/hbvpdf/tests/hbvpdf.hbl
   + contrib/hbssl/tests/hbssl.hbl
   - contrib/hbssl/tests/hbssl.hbp
   + contrib/hbbtree/tests/hbbtree.hbl
   - contrib/hbbtree/tests/hbbtree.hbp
   + contrib/hbcrypt/tests/hbcrypt.hbl
   - contrib/hbcrypt/tests/hbcrypt.hbp
   - contrib/examples/hbsqlit2/tests/hbsqlit2.hbp
   + contrib/examples/hbsqlit2/tests/hbsqlit2.hbl
   + contrib/examples/hbapollo/tests/hbapollo.hbl
   - contrib/examples/hbapollo/tests/hbapollo.hbp
   + contrib/examples/hbgf/tests/hbgf.hbl
   - contrib/examples/hbgf/tests/hbgf.hbp
   + contrib/examples/terminal/terminal.hbl
   - contrib/examples/terminal/terminal.hbp
   + contrib/examples/hbwhat/tests/hbwhat.hbl
   - contrib/examples/hbwhat/tests/hbwhat.hbp
    * Renamed *.hbp -> *.hbl in whole source tree.

  * doc/dirstruc.txt
  * bin/postinst.bat
  * utils/hbformat/hbformat.ini
  + utils/hbformat/hbformat.hbm
  * utils/hbformat/hbformat.prg
  * utils/hbformat/Makefile
    ! Added SVN props.
    + Added hbformat.hbm (hbmk2 make file).
    % Deleted forced MT mode from Makefile (not needed for hbformat)
    ! Separated C code from .prg.
    ! Minor fix to RF_FILEREAD() (non-string param GPF)
    % Minor opts to RF_FILEREAD().
    * RF_FULLPATH() changed to .prg level macro (from C).
    * Some formatting tweaks to hbformat.prg.
    + Added generation of shared hbformat executable to build process.
    * Using DEFAULT (common.ch).
    ! Using hb_osFileMask() instead of "*.*".
    * Minor tweaks to header output.
    ! Added to distruct.txt.
2009-05-25 08:19:23 +00:00

237 lines
19 KiB
Batchfile

@rem
@rem $Id$
@rem
@echo off
rem ---------------------------------------------------------------
rem Copyright 2009 Viktor Szakats (viktor.szakats@syenar.hu)
rem Copyright 2003 Przemyslaw Czerpak (druzus / at / priv.onet.pl)
rem simple script run after Harbour make install to finish install
rem process
rem
rem See COPYING for licensing terms.
rem ---------------------------------------------------------------
set _HBMK_CFG=%HB_BIN_INSTALL%\hbmk.cfg
echo Generating %_HBMK_CFG%...
echo # Harbour Make configuration> %_HBMK_CFG%
echo # Generated by Harbour build process>> %_HBMK_CFG%
echo arch=%HB_ARCHITECTURE%>> %_HBMK_CFG%
echo comp=%HB_COMPILER%>> %_HBMK_CFG%
set _HBMK_CFG=
goto inst_%HB_ARCHITECTURE%
:inst_win
:inst_wce
rem Windows post install part
if not "%OS%" == "Windows_NT" goto end
if "%HB_COMPILER%" == "mingw" set HB_DYNLIB=yes
if "%HB_COMPILER%" == "mingw64" set HB_DYNLIB=yes
if "%HB_COMPILER%" == "mingwarm" set HB_DYNLIB=yes
if "%HB_COMPILER%" == "cygwin" set HB_DYNLIB=yes
if not "%HB_DYNLIB%" == "yes" goto _SKIP_DLL_BIN
call %~dp0hb-mkdyn.bat
setlocal
if "%HB_BIN_COMPILE%" == "" set HB_BIN_COMPILE=%HB_BIN_INSTALL%
if exist "%HB_BIN_INSTALL%\*.dll" (
%HB_BIN_COMPILE%\hbmk2 -q0 -shared -o%HB_BIN_INSTALL%\hbrun-dll %~dp0..\utils\hbrun\hbrun.hbm -lhbcplr -lhbpp -lhbcommon
%HB_BIN_COMPILE%\hbmk2 -q0 -shared -o%HB_BIN_INSTALL%\hbmk2-dll %~dp0..\utils\hbmk2\hbmk2.hbm -lhbcplr -lhbpp -lhbcommon
%HB_BIN_COMPILE%\hbmk2 -q0 -shared -o%HB_BIN_INSTALL%\hbtest-dll %~dp0..\utils\hbtest\hbtest.hbm
%HB_BIN_COMPILE%\hbmk2 -q0 -shared -o%HB_BIN_INSTALL%\hbi18n-dll %~dp0..\utils\hbi18n\hbi18n.hbm
%HB_BIN_COMPILE%\hbmk2 -q0 -shared -o%HB_BIN_INSTALL%\hbformat-dll %~dp0..\utils\hbi18n\hbformat.hbm
)
endlocal
:_SKIP_DLL_BIN
if "%HB_BUILD_IMPLIB%" == "yes" (
if not "%HB_LIB_INSTALL%" == "" (
if "%HB_COMPILER%" == "bcc" (
if exist "%HB_DIR_ADS%\Redistribute\ace32.dll" implib "%HB_LIB_INSTALL%\ace32.lib" "%HB_DIR_ADS%\Redistribute\ace32.dll"
if exist "%HB_DIR_ADS%\ace32.dll" implib "%HB_LIB_INSTALL%\ace32.lib" "%HB_DIR_ADS%\ace32.dll"
if exist "%HB_DIR_ADS%\32bit\ace32.dll" implib "%HB_LIB_INSTALL%\ace32.lib" "%HB_DIR_ADS%\32bit\ace32.dll"
if exist "%HB_DIR_ALLEGRO%\bin\alleg42.dll" implib -a "%HB_LIB_INSTALL%\alleg.lib" "%HB_DIR_ALLEGRO%\bin\alleg42.dll"
if exist "%HB_DIR_APOLLO%\sde61.dll" implib "%HB_LIB_INSTALL%\sde61.lib" "%HB_DIR_APOLLO%\sde61.dll"
if exist "%HB_DIR_BLAT%\full\blat.dll" implib -a "%HB_LIB_INSTALL%\blat.lib" "%HB_DIR_BLAT%\full\blat.dll"
if exist "%HB_DIR_CURL%\libcurl.dll" implib -a "%HB_LIB_INSTALL%\libcurl.lib" "%HB_DIR_CURL%\libcurl.dll"
if exist "%HB_DIR_CURL%\bin\libcurl.dll" implib -a "%HB_LIB_INSTALL%\libcurl.lib" "%HB_DIR_CURL%\bin\libcurl.dll"
if exist "%HB_DIR_FIREBIRD%\lib\fbclient_bor.lib" copy /b /y "%HB_DIR_FIREBIRD%\lib\fbclient_bor.lib" "%HB_LIB_INSTALL%\fbclient.lib"
if exist "%HB_DIR_FREEIMAGE%\Dist\FreeImage.dll" implib "%HB_LIB_INSTALL%\FreeImage.lib" "%HB_DIR_FREEIMAGE%\Dist\FreeImage.dll"
if exist "%HB_DIR_GD%\bin\bgd.dll" implib "%HB_LIB_INSTALL%\bgd.lib" "%HB_DIR_GD%\bin\bgd.dll"
if exist "%HB_DIR_LIBHARU%\libhpdf.dll" implib "%HB_LIB_INSTALL%\libhpdf.lib" "%HB_DIR_LIBHARU%\libhpdf.dll"
if exist "%HB_DIR_LIBHARU%\lib_dll\libhpdf.dll" implib "%HB_LIB_INSTALL%\libhpdf.lib" "%HB_DIR_LIBHARU%\lib_dll\libhpdf.dll"
if exist "%HB_DIR_MYSQL%\bin\libmySQL.dll" implib "%HB_LIB_INSTALL%\libmysql.lib" "%HB_DIR_MYSQL%\bin\libmySQL.dll"
if exist "%HB_DIR_OPENSSL%\out32dll\libeay32.dll" implib -a "%HB_LIB_INSTALL%\libeay32.lib" "%HB_DIR_OPENSSL%\out32dll\libeay32.dll"
if exist "%HB_DIR_OPENSSL%\dll\libeay32.dll" implib -a "%HB_LIB_INSTALL%\libeay32.lib" "%HB_DIR_OPENSSL%\dll\libeay32.dll"
if exist "%HB_DIR_OPENSSL%\libeay32.dll" implib -a "%HB_LIB_INSTALL%\libeay32.lib" "%HB_DIR_OPENSSL%\libeay32.dll"
if exist "%HB_DIR_OPENSSL%\out32dll\ssleay32.dll" implib -a "%HB_LIB_INSTALL%\ssleay32.lib" "%HB_DIR_OPENSSL%\out32dll\ssleay32.dll"
if exist "%HB_DIR_OPENSSL%\dll\ssleay32.dll" implib -a "%HB_LIB_INSTALL%\ssleay32.lib" "%HB_DIR_OPENSSL%\dll\ssleay32.dll"
if exist "%HB_DIR_OPENSSL%\ssleay32.dll" implib -a "%HB_LIB_INSTALL%\ssleay32.lib" "%HB_DIR_OPENSSL%\ssleay32.dll"
if exist "%HB_DIR_PGSQL%\lib\libpq.dll" implib -a "%HB_LIB_INSTALL%\libpq.lib" "%HB_DIR_PGSQL%\lib\libpq.dll"
goto END
)
if "%HB_COMPILER%" == "msvc" (
if exist "%HB_DIR_ADS%\Redistribute\ace32.lib" copy /b /y "%HB_DIR_ADS%\Redistribute\ace32.lib" "%HB_LIB_INSTALL%\ace32.lib"
if exist "%HB_DIR_ADS%\ace32.lib" copy /b /y "%HB_DIR_ADS%\ace32.lib" "%HB_LIB_INSTALL%\ace32.lib"
if exist "%HB_DIR_ADS%\32bit\ace32.lib" copy /b /y "%HB_DIR_ADS%\32bit\ace32.lib" "%HB_LIB_INSTALL%\ace32.lib"
if exist "%HB_DIR_ALLEGRO%\lib\alleg.lib" copy /b /y "%HB_DIR_ALLEGRO%\lib\alleg.lib" "%HB_LIB_INSTALL%\alleg.lib"
if exist "%HB_DIR_APOLLO%\sde61.dll" call :P_MSVC_IMPLIB "%HB_DIR_APOLLO%\sde61.dll" "%HB_LIB_INSTALL%\sde61.lib"
if exist "%HB_DIR_BLAT%\full\blat.lib" copy /b /y "%HB_DIR_BLAT%\full\blat.lib" "%HB_LIB_INSTALL%\blat.lib"
if exist "%HB_DIR_CURL%\libcurl.dll" call :P_MSVC_IMPLIB "%HB_DIR_CURL%\libcurl.dll" "%HB_LIB_INSTALL%\libcurl.lib"
if exist "%HB_DIR_CURL%\bin\libcurl.dll" call :P_MSVC_IMPLIB "%HB_DIR_CURL%\bin\libcurl.dll" "%HB_LIB_INSTALL%\libcurl.lib"
if exist "%HB_DIR_FIREBIRD%\lib\fbclient_ms.lib" copy /b /y "%HB_DIR_FIREBIRD%\lib\fbclient_ms.lib" "%HB_LIB_INSTALL%\fbclient.lib"
if exist "%HB_DIR_FREEIMAGE%\Dist\FreeImage.lib" copy /b /y "%HB_DIR_FREEIMAGE%\Dist\FreeImage.lib" "%HB_LIB_INSTALL%\FreeImage.lib"
if exist "%HB_DIR_GD%\lib\bgd.lib" copy /b /y "%HB_DIR_GD%\lib\bgd.lib" "%HB_LIB_INSTALL%\bgd.lib"
if exist "%HB_DIR_LIBHARU%\libhpdf.lib" copy /b /y "%HB_DIR_LIBHARU%\libhpdf.lib" "%HB_LIB_INSTALL%\libhpdf.lib"
if exist "%HB_DIR_LIBHARU%\lib_dll\libhpdf.lib" copy /b /y "%HB_DIR_LIBHARU%\lib_dll\libhpdf.lib" "%HB_LIB_INSTALL%\libhpdf.lib"
if exist "%HB_DIR_MYSQL%\lib\opt\libmySQL.lib" copy /b /y "%HB_DIR_MYSQL%\lib\opt\libmySQL.lib" "%HB_LIB_INSTALL%\libmySQL.lib"
if exist "%HB_DIR_OPENSSL%\out32dll\libeay32.lib" copy /b /y "%HB_DIR_OPENSSL%\out32dll\libeay32.lib" "%HB_LIB_INSTALL%\libeay32.lib"
if exist "%HB_DIR_OPENSSL%\dll\libeay32.lib" copy /b /y "%HB_DIR_OPENSSL%\dll\libeay32.lib" "%HB_LIB_INSTALL%\libeay32.lib"
if exist "%HB_DIR_OPENSSL%\libeay32.lib" copy /b /y "%HB_DIR_OPENSSL%\libeay32.lib" "%HB_LIB_INSTALL%\libeay32.lib"
if exist "%HB_DIR_OPENSSL%\out32dll\ssleay32.lib" copy /b /y "%HB_DIR_OPENSSL%\out32dll\ssleay32.lib" "%HB_LIB_INSTALL%\ssleay32.lib"
if exist "%HB_DIR_OPENSSL%\dll\ssleay32.lib" copy /b /y "%HB_DIR_OPENSSL%\dll\ssleay32.lib" "%HB_LIB_INSTALL%\ssleay32.lib"
if exist "%HB_DIR_OPENSSL%\ssleay32.lib" copy /b /y "%HB_DIR_OPENSSL%\ssleay32.lib" "%HB_LIB_INSTALL%\ssleay32.lib"
if exist "%HB_DIR_PGSQL%\bin\libpq.dll" call :P_MSVC_IMPLIB "%HB_DIR_PGSQL%\bin\libpq.dll" "%HB_LIB_INSTALL%\libpq.lib"
if exist "%HB_DIR_PGSQL%\lib\libpq.lib" copy /b /y "%HB_DIR_PGSQL%\lib\libpq.lib" "%HB_LIB_INSTALL%\libpq.lib"
if exist "%HB_DIR_QT%\bin\QtCore4.dll" call :P_MSVC_IMPLIB "%HB_DIR_QT%\bin\QtCore4.dll" "%HB_LIB_INSTALL%\QtCore4.lib"
if exist "%HB_DIR_QT%\bin\QtGui4.dll" call :P_MSVC_IMPLIB "%HB_DIR_QT%\bin\QtGui4.dll" "%HB_LIB_INSTALL%\QtGui4.lib"
if exist "%HB_DIR_QT%\bin\QtNetwork4.dll" call :P_MSVC_IMPLIB "%HB_DIR_QT%\bin\QtNetwork4.dll" "%HB_LIB_INSTALL%\QtNetwork4.lib"
if exist "%HB_DIR_QT%\bin\QtWebKit4.dll" call :P_MSVC_IMPLIB "%HB_DIR_QT%\bin\QtWebKit4.dll" "%HB_LIB_INSTALL%\QtWebKit4.lib"
goto END
)
if "%HB_COMPILER%" == "mingw" (
if exist "%HB_DIR_ADS%\Redistribute\ace32.lib" copy /b /y "%HB_DIR_ADS%\Redistribute\ace32.lib" "%HB_LIB_INSTALL%\libace32.a"
if exist "%HB_DIR_ADS%\ace32.lib" copy /b /y "%HB_DIR_ADS%\ace32.lib" "%HB_LIB_INSTALL%\libace32.a"
if exist "%HB_DIR_ADS%\32bit\ace32.lib" copy /b /y "%HB_DIR_ADS%\32bit\ace32.lib" "%HB_LIB_INSTALL%\libace32.a"
if exist "%HB_DIR_ALLEGRO%\lib\alleg.lib" copy /b /y "%HB_DIR_ALLEGRO%\lib\alleg.lib" "%HB_LIB_INSTALL%\liballeg.a"
if exist "%HB_DIR_BLAT%\full\blat.lib" copy /b /y "%HB_DIR_BLAT%\full\blat.lib" "%HB_LIB_INSTALL%\libblat.a"
if exist "%HB_DIR_CURL%\lib\libcurl.a" copy /b /y "%HB_DIR_CURL%\lib\libcurl.a" "%HB_LIB_INSTALL%\libcurl.a"
if exist "%HB_DIR_CURL%\lib\libcurldll.a" copy /b /y "%HB_DIR_CURL%\lib\libcurldll.a" "%HB_LIB_INSTALL%\libcurldll.a"
if exist "%HB_DIR_FIREBIRD%\lib\fbclient_ms.lib" copy /b /y "%HB_DIR_FIREBIRD%\lib\fbclient_ms.lib" "%HB_LIB_INSTALL%\libfbclient.a"
if exist "%HB_DIR_FREEIMAGE%\Dist\FreeImage.lib" copy /b /y "%HB_DIR_FREEIMAGE%\Dist\FreeImage.lib" "%HB_LIB_INSTALL%\libFreeImage.a"
if exist "%HB_DIR_GD%\lib\bgd.lib" copy /b /y "%HB_DIR_GD%\lib\bgd.lib" "%HB_LIB_INSTALL%\libbgd.a"
if exist "%HB_DIR_LIBHARU%\libhpdf.lib" copy /b /y "%HB_DIR_LIBHARU%\libhpdf.lib" "%HB_LIB_INSTALL%\libhpdf.a"
if exist "%HB_DIR_LIBHARU%\lib_dll\libhpdf.lib" copy /b /y "%HB_DIR_LIBHARU%\lib_dll\libhpdf.lib" "%HB_LIB_INSTALL%\libhpdf.a"
if exist "%HB_DIR_MYSQL%\lib\opt\libmySQL.lib" copy /b /y "%HB_DIR_MYSQL%\lib\opt\libmySQL.lib" "%HB_LIB_INSTALL%\libmySQL.a"
if exist "%HB_DIR_OPENSSL%\out32dll\libeay32.lib" copy /b /y "%HB_DIR_OPENSSL%\out32dll\libeay32.lib" "%HB_LIB_INSTALL%\libeay32.a"
if exist "%HB_DIR_OPENSSL%\dll\libeay32.lib" copy /b /y "%HB_DIR_OPENSSL%\dll\libeay32.lib" "%HB_LIB_INSTALL%\libeay32.a"
if exist "%HB_DIR_OPENSSL%\libeay32.lib" copy /b /y "%HB_DIR_OPENSSL%\libeay32.lib" "%HB_LIB_INSTALL%\libeay32.a"
if exist "%HB_DIR_OPENSSL%\out32dll\ssleay32.lib" copy /b /y "%HB_DIR_OPENSSL%\out32dll\ssleay32.lib" "%HB_LIB_INSTALL%\libssleay32.a"
if exist "%HB_DIR_OPENSSL%\dll\ssleay32.lib" copy /b /y "%HB_DIR_OPENSSL%\dll\ssleay32.lib" "%HB_LIB_INSTALL%\libssleay32.a"
if exist "%HB_DIR_OPENSSL%\ssleay32.lib" copy /b /y "%HB_DIR_OPENSSL%\ssleay32.lib" "%HB_LIB_INSTALL%\libssleay32.a"
if exist "%HB_DIR_PGSQL%\lib\libpq.lib" copy /b /y "%HB_DIR_PGSQL%\lib\libpq.lib" "%HB_LIB_INSTALL%\libpq.a"
if exist "%HB_DIR_QT%\lib\libQtCore4.a" copy /b /y "%HB_DIR_QT%\lib\libQtCore4.a" "%HB_LIB_INSTALL%\libQtCore4.a"
if exist "%HB_DIR_QT%\lib\libQtGui4.a" copy /b /y "%HB_DIR_QT%\lib\libQtGui4.a" "%HB_LIB_INSTALL%\libQtGui4.a"
if exist "%HB_DIR_QT%\lib\libQtNetwork4.a" copy /b /y "%HB_DIR_QT%\lib\libQtNetwork4.a" "%HB_LIB_INSTALL%\libQtNetwork4.a"
if exist "%HB_DIR_QT%\lib\libQtWebKit4.a" copy /b /y "%HB_DIR_QT%\lib\libQtWebKit4.a" "%HB_LIB_INSTALL%\libQtWebKit4.a"
goto END
)
if "%HB_COMPILER%" == "pocc" (
if exist "%HB_DIR_ADS%\Redistribute\ace32.lib" copy /b /y "%HB_DIR_ADS%\Redistribute\ace32.lib" "%HB_LIB_INSTALL%\ace32.lib"
if exist "%HB_DIR_ADS%\ace32.lib" copy /b /y "%HB_DIR_ADS%\ace32.lib" "%HB_LIB_INSTALL%\ace32.lib"
if exist "%HB_DIR_ADS%\32bit\ace32.lib" copy /b /y "%HB_DIR_ADS%\32bit\ace32.lib" "%HB_LIB_INSTALL%\ace32.lib"
if exist "%HB_DIR_ALLEGRO%\lib\alleg.lib" copy /b /y "%HB_DIR_ALLEGRO%\lib\alleg.lib" "%HB_LIB_INSTALL%\alleg.lib"
if exist "%HB_DIR_APOLLO%\sde61.dll" polib "%HB_DIR_APOLLO%\sde61.dll" /out:"%HB_LIB_INSTALL%\sde61.lib"
if exist "%HB_DIR_BLAT%\full\blat.lib" copy /b /y "%HB_DIR_BLAT%\full\blat.lib" "%HB_LIB_INSTALL%\blat.lib"
if exist "%HB_DIR_CURL%\libcurl.dll" polib "%HB_DIR_CURL%\libcurl.dll" /out:"%HB_LIB_INSTALL%\libcurl.lib"
if exist "%HB_DIR_CURL%\bin\libcurl.dll" polib "%HB_DIR_CURL%\bin\libcurl.dll" /out:"%HB_LIB_INSTALL%\libcurl.lib"
if exist "%HB_DIR_FIREBIRD%\lib\fbclient_ms.lib" copy /b /y "%HB_DIR_FIREBIRD%\lib\fbclient_ms.lib" "%HB_LIB_INSTALL%\fbclient.lib"
if exist "%HB_DIR_FREEIMAGE%\Dist\FreeImage.lib" copy /b /y "%HB_DIR_FREEIMAGE%\Dist\FreeImage.lib" "%HB_LIB_INSTALL%\FreeImage.lib"
if exist "%HB_DIR_GD%\lib\bgd.lib" copy /b /y "%HB_DIR_GD%\lib\bgd.lib" "%HB_LIB_INSTALL%\bgd.lib"
if exist "%HB_DIR_LIBHARU%\libhpdf.lib" copy /b /y "%HB_DIR_LIBHARU%\libhpdf.lib" "%HB_LIB_INSTALL%\libhpdf.lib"
if exist "%HB_DIR_LIBHARU%\lib_dll\libhpdf.lib" copy /b /y "%HB_DIR_LIBHARU%\lib_dll\libhpdf.lib" "%HB_LIB_INSTALL%\libhpdf.lib"
if exist "%HB_DIR_MYSQL%\lib\opt\libmySQL.lib" copy /b /y "%HB_DIR_MYSQL%\lib\opt\libmySQL.lib" "%HB_LIB_INSTALL%\libmySQL.lib"
if exist "%HB_DIR_OPENSSL%\out32dll\libeay32.lib" copy /b /y "%HB_DIR_OPENSSL%\out32dll\libeay32.lib" "%HB_LIB_INSTALL%\libeay32.lib"
if exist "%HB_DIR_OPENSSL%\dll\libeay32.lib" copy /b /y "%HB_DIR_OPENSSL%\dll\libeay32.lib" "%HB_LIB_INSTALL%\libeay32.lib"
if exist "%HB_DIR_OPENSSL%\libeay32.lib" copy /b /y "%HB_DIR_OPENSSL%\libeay32.lib" "%HB_LIB_INSTALL%\libeay32.lib"
if exist "%HB_DIR_OPENSSL%\out32dll\ssleay32.lib" copy /b /y "%HB_DIR_OPENSSL%\out32dll\ssleay32.lib" "%HB_LIB_INSTALL%\ssleay32.lib"
if exist "%HB_DIR_OPENSSL%\dll\ssleay32.lib" copy /b /y "%HB_DIR_OPENSSL%\dll\ssleay32.lib" "%HB_LIB_INSTALL%\ssleay32.lib"
if exist "%HB_DIR_OPENSSL%\ssleay32.lib" copy /b /y "%HB_DIR_OPENSSL%\ssleay32.lib" "%HB_LIB_INSTALL%\ssleay32.lib"
if exist "%HB_DIR_PGSQL%\lib\libpq.lib" copy /b /y "%HB_DIR_PGSQL%\lib\libpq.lib" "%HB_LIB_INSTALL%\libpq.lib"
goto END
)
if "%HB_COMPILER%" == "owatcom" (
if exist "%HB_DIR_ADS%\Redistribute\ace32.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\ace32.lib" "%HB_DIR_ADS%\Redistribute\ace32.dll"
if exist "%HB_DIR_ADS%\ace32.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\ace32.lib" "%HB_DIR_ADS%\ace32.dll"
if exist "%HB_DIR_ADS%\32bit\ace32.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\ace32.lib" "%HB_DIR_ADS%\32bit\ace32.dll"
if exist "%HB_DIR_ALLEGRO%\bin\alleg42.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\alleg.lib" "%HB_DIR_ALLEGRO%\bin\alleg42.dll"
if exist "%HB_DIR_APOLLO%\sde61.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\sde61.lib" "%HB_DIR_APOLLO%\sde61.dll"
if exist "%HB_DIR_BLAT%\full\blat.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\blat.lib" "%HB_DIR_BLAT%\full\blat.dll"
if exist "%HB_DIR_CURL%\libcurl.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\libcurl.lib" "%HB_DIR_CURL%\libcurl.dll"
if exist "%HB_DIR_CURL%\bin\libcurl.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\libcurl.lib" "%HB_DIR_CURL%\bin\libcurl.dll"
if exist "%HB_DIR_FIREBIRD%\bin\fbclient.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\fbclient.lib" "%HB_DIR_FIREBIRD%\bin\fbclient.dll"
if exist "%HB_DIR_FREEIMAGE%\Dist\FreeImage.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\FreeImage.lib" "%HB_DIR_FREEIMAGE%\Dist\FreeImage.dll"
if exist "%HB_DIR_GD%\bin\bgd.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\bgd.lib" "%HB_DIR_GD%\bin\bgd.dll"
if exist "%HB_DIR_LIBHARU%\libhpdf.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\libhpdf.lib" "%HB_DIR_LIBHARU%\libhpdf.dll"
if exist "%HB_DIR_LIBHARU%\lib_dll\libhpdf.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\libhpdf.lib" "%HB_DIR_LIBHARU%\lib_dll\libhpdf.dll"
if exist "%HB_DIR_MYSQL%\bin\libmySQL.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\libmySQL.lib" "%HB_DIR_MYSQL%\bin\libmySQL.dll"
if exist "%HB_DIR_OPENSSL%\out32dll\libeay32.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\libeay32.lib" "%HB_DIR_OPENSSL%\out32dll\libeay32.dll"
if exist "%HB_DIR_OPENSSL%\dll\libeay32.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\libeay32.lib" "%HB_DIR_OPENSSL%\dll\libeay32.dll"
if exist "%HB_DIR_OPENSSL%\libeay32.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\libeay32.lib" "%HB_DIR_OPENSSL%\libeay32.dll"
if exist "%HB_DIR_OPENSSL%\out32dll\ssleay32.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\ssleay32.lib" "%HB_DIR_OPENSSL%\out32dll\ssleay32.dll"
if exist "%HB_DIR_OPENSSL%\dll\ssleay32.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\ssleay32.lib" "%HB_DIR_OPENSSL%\dll\ssleay32.dll"
if exist "%HB_DIR_OPENSSL%\ssleay32.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\ssleay32.lib" "%HB_DIR_OPENSSL%\ssleay32.dll"
if exist "%HB_DIR_PGSQL%\lib\libpq.dll" wlib.exe -q -o="%HB_LIB_INSTALL%\libpq.lib" "%HB_DIR_PGSQL%\lib\libpq.dll"
goto END
)
)
)
goto END
rem ---------------------------------------------------------------
rem These .dll to .lib conversions need GNU sed.exe in the path
rem ---------------------------------------------------------------
:P_MSVC_IMPLIB
echo /[ \t]*ordinal hint/,/^^[ \t]*Summary/{> _hbtemp.sed
echo /^^[ \t]\+[0-9]\+/{>> _hbtemp.sed
echo s/^^[ \t]\+[0-9]\+[ \t]\+[0-9A-Fa-f]\+[ \t]\+[0-9A-Fa-f]\+[ \t]\+\(.*\)/\1/p>> _hbtemp.sed
echo }>> _hbtemp.sed
echo }>> _hbtemp.sed
dumpbin /exports "%1" > _dump.tmp
echo LIBRARY "%1" > _temp.def
echo EXPORTS >> _temp.def
sed -nf _hbtemp.sed < _dump.tmp >> _temp.def
lib /machine:x86 /def:_temp.def /out:"%2"
del _dump.tmp
del _temp.def
del _hbtemp.sed
rem ---------------------------------------------------------------
goto END
goto end
:inst_dos
rem DOS post install part
goto end
:inst_
:end