diff options
author | Pierre F <fpy@bger.ch> | 2024-10-31 17:36:18 +0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2024-11-01 14:43:12 +0100 |
commit | 1fd4ec9539b4403f5a87ab42da93fe2f05a5388b (patch) | |
tree | 2968694110850a6f459a9c54957e44c173e0ae98 /helpers | |
parent | 96790dd123586754c563544c30f303906fdbeb36 (diff) |
tdf#143846 split EXACT FIND FIXED LEFT LEN LOWER
Change-Id: If4635fad96157ae6b91c77aa574c1bfb3351d35c
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/175858
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/calc_text_func.pl | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/helpers/calc_text_func.pl b/helpers/calc_text_func.pl index 4fb5b72578..195c778d8a 100644 --- a/helpers/calc_text_func.pl +++ b/helpers/calc_text_func.pl @@ -7,14 +7,21 @@ $hlp0='helpers/calc_text_func0.xsl'; #replace section $source= 'source/text/scalc/01/04060110.xhp'; $tmp = $source . '.tmp'; -@todo = qw/ CHAR CLEAN CODE CONCATENATE DECIMAL DOLLAR EXACT FIND FIXED LEFT LEFTB LEN LENB LOWER MID MIDB PROPER REPLACE REPT RIGHT RIGHTB SEARCH SUBSTITUTE T TEXT TRIM UNICHAR UNICODE UPPER /; +@todo = qw/ EXACT FIND FIXED LEFT LEFTB LEN LENB LOWER MID MIDB PROPER REPLACE REPT RIGHT RIGHTB SEARCH SUBSTITUTE T TEXT TRIM UNICHAR UNICODE UPPER /; for $F ( @ARGV) { $f=lc $F; say $F - system qq( xsltproc --stringparam func $F $hlp $source > source/text/scalc/01/func_$f.xhp ); + $fOut = "source/text/scalc/01/func_$f.xhp"; + system qq( xsltproc --stringparam func $F $hlp $source > $fOut ); + + if ( -z $fOut ) { + warn "$F empty"; + unlink $fOut; + next; + } system qq( xsltproc --stringparam func $f $hlp0 $source > $tmp ); rename $tmp, $source; @@ -23,4 +30,6 @@ for $F ( @ARGV) { } say qq(TODO. add to git and AllLangHelp_scalc.mk : -$mk); +$mk) + if $mk; + |