2012-06-14 14:38 UTC+0200 Viktor Szakats (harbour syenar.net)

* INSTALL
    + documented hbmk2 usage as shell, script runner and
      .hrb builder/runner

  * package/mpkg_win.nsi
  * package/winuni/mpkg_win_uni.nsi
    + use hbmk2 as interactive shell instead of hbrun

  * utils/hbmk2/hbmk2.prg
    + display Harbour version when starting up the interactive shell
This commit is contained in:
Viktor Szakats
2012-06-14 12:39:38 +00:00
parent 231c24cbfa
commit 837d53ede4
5 changed files with 30 additions and 2 deletions

View File

@@ -16,6 +16,18 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-06-14 14:38 UTC+0200 Viktor Szakats (harbour syenar.net)
* INSTALL
+ documented hbmk2 usage as shell, script runner and
.hrb builder/runner
* package/mpkg_win.nsi
* package/winuni/mpkg_win_uni.nsi
+ use hbmk2 as interactive shell instead of hbrun
* utils/hbmk2/hbmk2.prg
+ display Harbour version when starting up the interactive shell
2012-06-14 14:27 UTC+0200 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/hbmk2.prg
* killed some more 'dynamic' in hbshell source

View File

@@ -1357,6 +1357,20 @@ HARBOUR
which will automatically be used, so you don't have to
make any extra steps here.
Examples to start with Harbour:
- To run the interactive shell ('dot' prompt):
'hbmk2 .'
- To run a Harbour script:
'hbmk2 script.hb [<options>]'
Examples to build and run Harbour portable binary (aka precompiled script):
- To build:
'hbmk2 -gh script.hb'
- To run result of above:
'hbmk2 script.hrb [<options>]'
Examples to build a Harbour application:
- To build one simple .prg:

View File

@@ -130,7 +130,7 @@ Section "Start Menu and Desktop icons" hb_shortcuts
CreateShortCut "$SMPROGRAMS\Harbour\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\Harbour\Harbour (Command line).lnk" "cmd.exe" "/k cd $INSTDIR\bin" "cmd.exe" 0
CreateShortCut "$SMPROGRAMS\Harbour\Harbour.lnk" "$INSTDIR" "" "$INSTDIR" 0
CreateShortCut "$SMPROGRAMS\Harbour\Harbour (Interactive shell).lnk" "$INSTDIR\bin\hbrun.exe" "-v" "$INSTDIR\bin\hbrun.exe" 0
CreateShortCut "$SMPROGRAMS\Harbour\Harbour (Interactive shell).lnk" "$INSTDIR\bin\hbmk2.exe" "." "$INSTDIR\bin\hbmk2.exe" 0
CreateDirectory "$SMPROGRAMS\Harbour\Links"
WriteINIStr "$SMPROGRAMS\Harbour\Links\Homepage.url" "InternetShortcut" "URL" "http://harbour-project.org/"
WriteINIStr "$SMPROGRAMS\Harbour\Links\Sourceforge Page.url" "InternetShortcut" "URL" "http://sourceforge.net/projects/harbour-project/"

View File

@@ -347,7 +347,7 @@ Section "Start Menu and Desktop icons" hb_shortcuts
CreateShortCut "$SMPROGRAMS\Harbour $%HB_VM%\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\Harbour $%HB_VM%\Harbour (Command line).lnk" "cmd.exe" "/k cd $INSTDIR\bin" "cmd.exe" 0
CreateShortCut "$SMPROGRAMS\Harbour $%HB_VM%\Harbour.lnk" "$INSTDIR" "" "$INSTDIR" 0
CreateShortCut "$SMPROGRAMS\Harbour $%HB_VM%\Harbout (Interactive shell).lnk" "$INSTDIR\bin\hbrun.exe" "-v" "$INSTDIR\bin\hbrun.exe" 0
CreateShortCut "$SMPROGRAMS\Harbour $%HB_VM%\Harbour (Interactive shell).lnk" "$INSTDIR\bin\hbmk2.exe" "." "$INSTDIR\bin\hbmk2.exe" 0
; TOFIX: Only create this shortcut, if 'hb_ide' component was enabled at install time (or when the target filename exists)
;!ifndef PKG_NO_IDE
; CreateShortCut "$SMPROGRAMS\Harbour $%HB_VM%\hbide.lnk" "$INSTDIR\bin\hbide.exe" "" "$INSTDIR\bin\hbide.exe" 0

View File

@@ -12696,6 +12696,8 @@ STATIC PROCEDURE __hbshell_prompt( aParams, cCommand )
plugins := __hbshell_plugins_load( __hbshell_plugins(), aParams )
__hbshell_Exec( "? hb_Version()" )
DO WHILE .T.
IF cLine == NIL