simplified the way a contrib can be (re)built
This commit is contained in:
@@ -10,6 +10,11 @@
|
||||
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
|
||||
*/
|
||||
|
||||
2013-03-26 01:26 UTC+0100 Viktor Szakats (harbour syenar.net)
|
||||
* contrib/make.hb
|
||||
* README.txt
|
||||
+ simplified the way a contrib can be (re)built
|
||||
|
||||
2013-03-25 21:41 UTC+0100 Viktor Szakats (harbour syenar.net)
|
||||
+ tests/achoice3.prg
|
||||
+ added another AChoice() TOFIX demonstration.
|
||||
|
||||
@@ -260,8 +260,8 @@ TABLE OF CONTENT
|
||||
|
||||
If you want to rebuild one specific contrib package, use this:
|
||||
|
||||
cd contrib/<name>
|
||||
../../bin/<plat>/<comp>/hbmk2 ../make.hb [clean] [custom hbmk2 options]
|
||||
cd contrib
|
||||
hbmk2 make.hb <name> [clean] [custom hbmk2 options]
|
||||
|
||||
|
||||
4. HOW TO CREATE DISTRIBUTABLE PACKAGES
|
||||
|
||||
@@ -118,6 +118,7 @@ PROCEDURE Standalone( aParams, hProjectList )
|
||||
LOCAL tmp1
|
||||
|
||||
LOCAL lCustom
|
||||
LOCAL cCustomDir
|
||||
|
||||
/* Processing cmdline options */
|
||||
|
||||
@@ -167,6 +168,14 @@ PROCEDURE Standalone( aParams, hProjectList )
|
||||
hProjectReqList := { => }
|
||||
hb_HKeepOrder( hProjectReqList, .T. )
|
||||
|
||||
IF hb_DirExists( AllTrim( cOptionsUser ) )
|
||||
cCustomDir := hb_cwd( AllTrim( cOptionsUser ) )
|
||||
cOptionsUser := ""
|
||||
lCustom := .F.
|
||||
s_cHome += "../"
|
||||
s_cRoot += "../"
|
||||
ENDIF
|
||||
|
||||
IF ! lCustom
|
||||
/* Find out which projects are in current dir, these will be our primary targets */
|
||||
FOR EACH tmp IN hProjectList
|
||||
@@ -192,6 +201,10 @@ PROCEDURE Standalone( aParams, hProjectList )
|
||||
|
||||
build_projects( nAction, hProjectList, hProjectReqList, cOptionsUser, .T. )
|
||||
|
||||
IF ! Empty( cCustomDir )
|
||||
hb_cwd( cCustomDir )
|
||||
ENDIF
|
||||
|
||||
RETURN
|
||||
|
||||
/* Workflow translation from GNU Make to hbmk2:
|
||||
|
||||
Reference in New Issue
Block a user