diff --git a/harbour/ChangeLog.txt b/harbour/ChangeLog.txt index 075f12e100..22c15a7929 100644 --- a/harbour/ChangeLog.txt +++ b/harbour/ChangeLog.txt @@ -10,6 +10,15 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2013-02-12 20:01 UTC+0100 Viktor Szakats (harbour syenar.net) + * utils/hbmk2/hbmk2.*.po + * utils/hbmk2/hbmk2.prg + + added all supported filter values/expressions to help. + ! fixed case insensitiveness in filter comparison + expressions (=,>,<) to work on non-ASCII chars as well. + (I wouldn't recommend using accented chars to control + build behavior though) + 2013-02-12 16:57 UTC+0100 Viktor Szakats (harbour syenar.net) * utils/hbmk2/hbmk2.*.po * utils/hbmk2/hbmk2.prg diff --git a/harbour/utils/hbmk2/hbmk2.es_PE.po b/harbour/utils/hbmk2/hbmk2.es_PE.po index 5dec62a3c4..bfc314310a 100644 --- a/harbour/utils/hbmk2/hbmk2.es_PE.po +++ b/harbour/utils/hbmk2/hbmk2.es_PE.po @@ -943,8 +943,8 @@ msgstr "no agregue lista adicional de librerías del sistema a lista de librerí #: hbmk2.prg:7960 hbmk2.prg:11650 hbmk2.prg:13120 #, c-format -msgid "Platform filters are accepted in each .hbc line and with several options.\\nFilter format: {[!][|||]}. Filters can be combined using '&', '|' operators and grouped by parentheses. Ex.: {win}, {gcc}, {linux|darwin}, {win&!pocc}, {(win|linux)&!watcom}, {unix&mt&gui}, -cflag={win}-DMYDEF, -stop{dos}, -stop{!allwin}, {allwin|allmsvc|allgcc|allmingw|allicc|allbcc|allpocc|unix}, {x86|x86_64|ia64|arm|mips|sh}, {debug|nodebug|gui|std|mt|st|shared|static|winuni|winansi|xhb}" -msgstr "filtros para plataformas son aceptados en cada linea de archivo .hbc y con varias opciones.\\nFormato de filtro: {[!][|||]}. Filtros pueden ser combinados usando los operadores '&', '|' y agrupados en parénteses. Ej.: {win}, {gcc}, {linux|darwin}, {win&!pocc}, {(win|linux)&!watcom}, {unix&mt&gui}, -cflag={win}-DMYDEF, -stop{dos}, -stop{!allwin}, {allwin|allmsvc|allgcc|allmingw|allicc|allbcc|allpocc|unix}, {x86|x86_64|ia64|arm|mips|sh}, {debug|nodebug|gui|std|mt|st|shared|static|winuni|winansi|xhb}" +msgid "Platform filters are accepted in each .hbc line and with several options.\\nFilter format: {[!][|||]}. Filters can be combined using '&', '|' operators and grouped by parentheses. Ex.: {win}, {gcc}, {linux|darwin}, {win&!pocc}, {(win|linux)&!watcom}, {unix&mt&gui}, -cflag={win}-DMYDEF, -stop{dos}, -stop{!allwin}" +msgstr "filtros para plataformas son aceptados en cada linea de archivo .hbc y con varias opciones.\\nFormato de filtro: {[!][|||]}. Filtros pueden ser combinados usando los operadores '&', '|' y agrupados en parénteses. Ej.: {win}, {gcc}, {linux|darwin}, {win&!pocc}, {(win|linux)&!watcom}, {unix&mt&gui}, -cflag={win}-DMYDEF, -stop{dos}, -stop{!allwin}" #: hbmk2.prg:7555 hbmk2.prg:7672 hbmk2.prg:7755 hbmk2.prg:11163 hbmk2.prg:11284 hbmk2.prg:11408 hbmk2.prg:12183 hbmk2.prg:12311 hbmk2.prg:12459 #, c-format @@ -953,8 +953,8 @@ msgstr "Guardando como archivo .hbp: %1$s" #: hbmk2.prg:7840 hbmk2.prg:11498 hbmk2.prg:12956 #, c-format -msgid "Supported values for each supported value:" -msgstr "Valores suportados para conforme a disponible:" +msgid "Supported values for each supported value:" +msgstr "Valores suportados para conforme a disponible:" #: hbmk2.prg:7942 hbmk2.prg:11633 hbmk2.prg:13102 #, c-format diff --git a/harbour/utils/hbmk2/hbmk2.hu_HU.po b/harbour/utils/hbmk2/hbmk2.hu_HU.po index 5e9a91077e..064d718b1c 100644 --- a/harbour/utils/hbmk2/hbmk2.hu_HU.po +++ b/harbour/utils/hbmk2/hbmk2.hu_HU.po @@ -99,8 +99,8 @@ msgstr "Figyelem: Hibás -gt érték figyelmen kívül hagyva: %1$s" #: hbmk2.prg:7959 hbmk2.prg:11650 hbmk2.prg:13120 #, c-format -msgid "Platform filters are accepted in each .hbc line and with several options.\\nFilter format: {[!][|||]}. Filters can be combined using '&', '|' operators and grouped by parentheses. Ex.: {win}, {gcc}, {linux|darwin}, {win&!pocc}, {(win|linux)&!watcom}, {unix&mt&gui}, -cflag={win}-DMYDEF, -stop{dos}, -stop{!allwin}, {allwin|allmsvc|allgcc|allmingw|allicc|allbcc|allpocc|unix}, {x86|x86_64|ia64|arm|mips|sh}, {debug|nodebug|gui|std|mt|st|shared|static|winuni|winansi|xhb}" -msgstr "A szűrők az egyes .hbc sorokban használhatók és számos opció esetén támogatottak.\\nSzűrő formátum: {[!][|||]}. Szűrők kombinálhatók '&', '|' operátorokkal és zárójelekkel csoportosíthatók. Pl.: {win}, {gcc}, {linux|darwin}, {win&!pocc}, {(win|linux)&!watcom}, {unix&mt&gui}, -cflag={win}-DMYDEF, -stop{dos}, -stop{!allwin}, {allwin|allmsvc|allgcc|allmingw|allicc|allbcc|allpocc|unix}, {x86|x86_64|ia64|arm|mips|sh}, {debug|nodebug|gui|std|mt|st|shared|static|winuni|winansi|xhb}" +msgid "Platform filters are accepted in each .hbc line and with several options.\\nFilter format: {[!][|||]}. Filters can be combined using '&', '|' operators and grouped by parentheses. Ex.: {win}, {gcc}, {linux|darwin}, {win&!pocc}, {(win|linux)&!watcom}, {unix&mt&gui}, -cflag={win}-DMYDEF, -stop{dos}, -stop{!allwin}" +msgstr "A szűrők az egyes .hbc sorokban használhatók és számos opció esetén támogatottak.\\nSzűrő formátum: {[!][|||]}. Szűrők kombinálhatók '&', '|' operátorokkal és zárójelekkel csoportosíthatók. Pl.: {win}, {gcc}, {linux|darwin}, {win&!pocc}, {(win|linux)&!watcom}, {unix&mt&gui}, -cflag={win}-DMYDEF, -stop{dos}, -stop{!allwin}" #: hbmk2.prg:4128 hbmk2.prg:5633 hbmk2.prg:6212 #, c-format @@ -204,8 +204,8 @@ msgstr "örökölje a .prg/.c/szerkesztő kapcsolókat (vagy ne) a Harbourtól" #: hbmk2.prg:7839 hbmk2.prg:11498 hbmk2.prg:12956 #, c-format -msgid "Supported values for each supported value:" -msgstr "Az egyes értékekhez tartozó értékek a következők:" +msgid "Supported values for each supported value:" +msgstr "Az egyes értékekhez tartozó értékek a következők:" #: hbmk2.prg:7941 hbmk2.prg:11633 hbmk2.prg:13102 #, c-format diff --git a/harbour/utils/hbmk2/hbmk2.prg b/harbour/utils/hbmk2/hbmk2.prg index 30c7e81d0e..3310fa57e6 100644 --- a/harbour/utils/hbmk2/hbmk2.prg +++ b/harbour/utils/hbmk2/hbmk2.prg @@ -12451,11 +12451,11 @@ FUNCTION hbmk_KEYW( hbmk, cFileName, cKeyword, cValue, cOperator ) IF cValue != NIL SWITCH cOperator CASE "=" - RETURN hb_asciiUpper( tmp ) == hb_asciiUpper( cValue ) + RETURN Lower( tmp ) == Lower( cValue ) CASE ">" - RETURN hb_asciiUpper( tmp ) > hb_asciiUpper( cValue ) + RETURN Lower( tmp ) > Lower( cValue ) CASE "<" - RETURN hb_asciiUpper( tmp ) < hb_asciiUpper( cValue ) + RETURN Lower( tmp ) < Lower( cValue ) ENDSWITCH ELSE IF ! Empty( tmp ) .AND. !( tmp == "0" ) .AND. !( Lower( tmp ) == "no" ) @@ -14790,8 +14790,8 @@ STATIC PROCEDURE ShowHelp( hbmk, lFull, lLong ) I_( "Options:" ) } LOCAL aHdr_Supp := { ; - "", ; - I_( "Supported values for each supported value:" ) } + NIL, ; + { "", I_( "Supported values for each supported value:" ) } } LOCAL aLst_Supp := { ; NIL, ; @@ -14975,11 +14975,11 @@ STATIC PROCEDURE ShowHelp( hbmk, lFull, lLong ) { "-longhelpmd" , I_( "long help in MarkDown format" ) }, ; { "--version" , I_( "display version header only" ) } } - LOCAL aHdr_EnvVars := { ; + LOCAL aHdr_EnvVar := { ; "", ; I_( "Environment variables:" ) } - LOCAL aLst_EnvVars := { ; + LOCAL aLst_EnvVar := { ; NIL, ; { _HBMK_ENV_NAME , I_( "accepts any options as if they were passed in the beginning of the command-line" ) }, ; { "HB_PLATFORM" , I_( "accepts same values as -plat= option" ) }, ; @@ -15002,11 +15002,11 @@ STATIC PROCEDURE ShowHelp( hbmk, lFull, lLong ) { "HB_INSTALL_PREFIX" , I_( "override Harbour base installation directory" ) }, ; { "HB_INSTALL_ADDONS" , I_( "override Harbour base addons directory" ) } } - LOCAL aHdr_Files := { ; + LOCAL aHdr_File := { ; "", ; I_( "Files:" ) } - LOCAL aLst_Files := { ; + LOCAL aLst_File := { ; NIL, ; { "*.hbp" , I_( "project file. Can contain command line options, expected to create an output. Lines beginning with '#' character are ignored, otherwise newline is optional, same rules apply as for the command-line." ) }, ; { "*.hbm" , I_( "collection of options. Can be used to collect common ones into a file and include that into project files. Lines beginning with '#' character are ignored, otherwise newline is optional, same rules apply as for the command-line." ) }, ; @@ -15019,11 +15019,11 @@ STATIC PROCEDURE ShowHelp( hbmk, lFull, lLong ) { _HBMK_BUILTIN_FILENAME_MARKER_ + "hb_pkg_dynlib.hbm" , hb_StrFormat( I_( "special .hbm file embedded inside %1$s. It manages the details of creating a dynamic library (in the style of Harbour contribs)." ), _SELF_NAME_ ) } , ; { _HBMK_BUILTIN_FILENAME_MARKER_ + "hb_pkg_install.hbm", hb_StrFormat( I_( "special .hbm file embedded inside %1$s. It manages the details of installing targets and related package files to standard locations (in the style of Harbour contribs)." ), _SELF_NAME_ ) } } - LOCAL aHdr_Macros := { ; + LOCAL aHdr_Macro := { ; "", ; I_( "Macro variables:" ) } - LOCAL aLst_Macros := { ; + LOCAL aLst_Macro := { ; NIL, ; { "${hb_root}" , hb_StrFormat( I_( "directory of %1$s" ), _SELF_NAME_ ) }, ; { "${hb_dir}" , I_( "directory of the filename it is used in" ) }, ; @@ -15035,8 +15035,8 @@ STATIC PROCEDURE ShowHelp( hbmk, lFull, lLong ) { "${hb_targetname}" , hb_StrFormat( I_( "name of the project (without directory and extension). Returns %1$s if there is not project file." ), _HBMK_TARGENAME_ADHOC ) }, ; { "${hb_targettype}" , I_( "type of the project (hbexe, hblib, hbdyn, hbdynvm, hbimplib, hbppo, hbhrb, hbcontainer)" ) }, ; { "${hb_plat}" , I_( "selected platform" ) }, ; - { "${hb_comp}" , I_( "selected compiler" ) }, ; - { "${hb_comp_ver}" , I_( "compiler version" ) }, ; + { "${hb_comp}" , I_( "selected C compiler" ) }, ; + { "${hb_comp_ver}" , I_( "C compiler version" ) }, ; { "${hb_build}" , I_( "build name" ) }, ; { "${hb_cpu}" , I_( "selected CPU" ) }, ; { "${hb_work}" , I_( "default base workdir name" ) }, ; @@ -15066,6 +15066,45 @@ STATIC PROCEDURE ShowHelp( hbmk, lFull, lLong ) { "${}" , I_( "Returns the header directory of dependency , or '1' if it is not detected" ) }, ; { "${}" , I_( "Returns the value of the environment variable " ) } } + LOCAL aHdr_Filter := { ; + "", ; + I_( "Filters (you can combine and/or negate them):" ) } + + LOCAL aLst_Filter := { ; + NIL, ; + { "{}" , I_( "target platform. Where can be any value accepted by -plat= option." ) }, ; + { "{}" , I_( "target C compiler. Where can be any value accepted by -comp= option." ) }, ; + { "{}" , I_( "target CPU. Where can be any of: x86, x86_64, ia64, arm, mips, sh" ) }, ; + { "{}" , I_( "target type. Where is any of the values returned by macro variable ${hb_targettype}." ) }, ; + { "{mt}" , I_( "target is multi-threaded (see -mt option)" ) }, ; + { "{st}" , I_( "target is single-threaded (see -st option)" ) }, ; + { "{gui}" , I_( "GUI target (see -gui option)" ) }, ; + { "{std}" , I_( "console target (see -console option)" ) }, ; + { "{debug}" , I_( "C level debugging is enabled (see -debug option)" ) }, ; + { "{nodebug}" , I_( "C level debugging is disabled (see -debug- option)" ) }, ; + { "{shared}" , I_( "shared build (see -shared and related options)" ) }, ; + { "{static}" , I_( "static build (see -static and related options)" ) }, ; + { "{lngcpp}" , I_( "forced C++ mode (see -cpp option)" ) }, ; + { "{lngc}" , I_( "forced C mode (see -c option)" ) }, ; + { "{winuni}" , I_( "Windows UNICODE (WIDE) mode (see -winuni option)" ) }, ; + { "{winansi}" , I_( "Windows ANSI mode (see -winuni- option)" ) }, ; + { "{unix}" , I_( "target platform is *nix compatible (bsd, hpux, sunos, beos, qnx, android, vxworks, symbian, linux, darwin, cygwin, minix, aix)" ) }, ; + { "{allwin}" , I_( "target platform is Windows compatible (win, wce)" ) }, ; + { "{allgcc}" , I_( "target C compiler belongs to gcc family (gcc, mingw, mingw64, mingwarm, djgpp, gccomf, clang, open64, pcc)" ) }, ; + { "{allmingw}" , I_( "target C compiler is mingw* (mingw, mingw64, mingwarm)" ) }, ; + { "{allmsvc}" , I_( "target C compiler is msvc* (msvc, msvc64, msvcia64, msvcarm)" ) }, ; + { "{allbcc}" , I_( "target C compiler is bcc* (bcc, bcc64)" ) }, ; + { "{allpocc}" , I_( "target C compiler is pocc* (pocc, pocc64, poccarm)" ) }, ; + { "{allicc}" , I_( "target C compiler is icc* (icc, iccia64)" ) }, ; + { "{hb10}" , I_( "Harbour 1.0.x compatibility mode (see -hb10 option)" ) }, ; + { "{hb20}" , I_( "Harbour 2.0.x compatibility mode (see -hb20 option)" ) }, ; + { "{xhb}" , I_( "xhb mode (see -xhb option)" ) }, ; + { "{hb_ispath=''}", I_( "filter will pass if or name exists on disk." ) }, ; + { "{MACRO}" , I_( "filter will pass if ${MACRO} value is not empty and not equal to '0' or 'no' (case insensitive)" ) }, ; + { "{MACRO=''}" , I_( "filter will pass if ${MACRO} value equals to (case insensitive)." ) }, ; + { "{MACRO>''}" , I_( "filter will pass if ${MACRO} value is larger than (case insensitive)." ) }, ; + { "{MACRO<''}" , I_( "filter will pass if ${MACRO} value is smaller than (case insensitive)." ) } } + LOCAL aHdr_HBC := { ; "", ; I_( ".hbc directives (they should be written in separate lines):" ) } @@ -15167,11 +15206,12 @@ STATIC PROCEDURE ShowHelp( hbmk, lFull, lLong ) LOCAL aLst_Notes := { ; NIL, ; I_( "