: eval 'exec perl -S $0 ${1+"$@"}' if 0; #************************************************************** # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # #************************************************************** # # Create ordinary theme from HiContrast images. # use File::Copy; use File::Find; use File::Path; use File::Spec; ( $src, $dst ) = @ARGV; if ( $src eq "" || $dst eq "" ) { print STDERR "Usage: hicontrast-to-theme.pl src dest\n\n"; print STDERR "Create ordinary theme from HiContrast images.\n"; exit 1; } $dst = File::Spec->rel2abs( $dst ); @hc_table = ( [ ".*_h.png", "_h.png", ".png" ], [ ".*_sch.png", "_sch.png", ".png" ], [ ".*_hc.png", "_hc.png", ".png" ], [ "lch_.*.png", "lch_", "lc_" ], [ "sch_.*.png", "sch_", "sc_" ], [ "lch[0-9].*.png", "lch", "lc" ], [ "sch[0-9].*.png", "sch", "sc" ], [ "loh[0-9].*.png", "loh", "lo" ], [ "lxh[0-9].*.png", "lxh", "lx" ], [ "sxh[0-9].*.png", "sxh", "sx" ], [ "avh[0-9].*.png", "avh", "av" ], [ "avlh[0-9].*.png", "avlh", "avl" ], [ "idh[0-9].*.png", "idh", "id" ], [ "imh[0-9].*.png", "imh", "im" ], [ "mih[0-9].*.png", "mih", "mi" ], [ "tbh[0-9].*.png", "tbh", "tb" ], [ "nah[0-9].*.png", "nah", "na" ], [ "nch[0-9].*.png", "nch", "nc" ], [ "nvh[0-9].*.png", "nvh", "nv" ], [ "ouh[0-9].*.png", "ouh", "ou" ], [ "ddh[0-9].*.png", "ddh", "dd" ], [ "sfh[0-9].*.png", "sfh", "sf" ], [ "srh[0-9].*.png", "srh", "sr" ], [ "wrh[0-9].*.png", "wrh", "wr" ], [ "alh[0-9].*.png", "alh", "al" ], [ "ath[0-9].*.png", "ath", "at" ], [ "bih[0-9].*.png", "bih", "bi" ], [ "coh[0-9].*.png", "coh", "co" ], [ "foh[0-9].*.png", "foh", "fo" ], [ "fuh[0-9].*.png", "fuh", "fu" ], [ "oph[0-9].*.png", "oph", "op" ], [ "unh[0-9].*.png", "unh", "un" ], [ "edh[0-9].*.png", "edh", "ed" ], [ "cdh[0-9].*.png", "cdh", "cd" ], [ "frh[0-9].*.png", "frh", "fr" ], [ "fwh[0-9].*.png", "fwh", "fw" ], [ "nuh[0-9].*.png", "nuh", "nu" ], [ "prh[0-9].*.png", "prh", "pr" ], [ "shh[0-9].*.png", "shh", "sh" ], [ "trh[0-9].*.png", "trh", "tr" ], [ "reh[0-9].*.png", "reh", "re" ], [ "joh[0-9].*.png", "joh", "jo" ], [ "fph[0-9].*.png", "fph", "fp" ], [ "dah[0-9].*.png", "dah", "da" ] ); my (@from_stat, @to_stat); sub copy_normalized { $file = $_; for $hc ( @hc_table ) { ( $what, $from, $to ) = @$hc; if ( $file =~ /$what/&&!($file=~/\.svn/) ) { my $dir = File::Spec->catdir( $dst, $File::Find::dir ); if ( ! -d $dir ) { mkpath( $dir ); } ( my $copy = $file ) =~ s/$from/$to/; $copy = File::Spec->catfile( $dir, $copy ); @from_stat = stat($file); @to_stat = stat($copy); if ( $from_stat[9] > $to_stat[9] ) { if ( $^O eq 'os2' ) { $rc = unlink($copy); } copy( $file, $copy ) || die $!; utime( $from_stat[9], $from_stat[9], $copy ); } last; } } } chdir( $src ); find( \©_normalized, '.' ); istro/collabora/cp-6.0'>distro/collabora/cp-6.0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/l10ntools
AgeCommit message (Expand)Author
2022-06-23Removed duplicated includeAndrea Gelmini
2022-06-23clang-tidy modernize-pass-by-value in l10ntoolsNoel Grandin
2022-05-05use more o3tl::getTokenNoel Grandin
2022-04-15address potential find/rfind failuresNoel Grandin
2022-04-13use more string_view in l10ntoolsNoel Grandin
2022-04-13loplugin:stringviewparam whitelist some more functionsNoel Grandin
2022-04-12loplugin:stringview more o3tl conversionNoel Grandin
2022-04-10use more string_viewNoel Grandin
2022-04-10loplugin:stringview check for getToken and trimNoel Grandin
2022-04-08loplugin:stringviewparam convert methods using trimNoel Grandin
2022-04-02loplugin:stringviewparam convert methods using indexOfNoel Grandin
2022-02-21Fail Executable_ulfex upon duplicate keys in malformed inputStephan Bergmann
2022-01-27Recheck modules [i-l]* with IWYUGabor Kelemen
2021-12-22loplugin:flatten in l10ntools..lotuswordproNoel Grandin
2021-11-26loplugin:stringliteraldefine in l10ntools..ooxNoel Grandin
2021-11-10new loplugin:stringliteraldefineNoel Grandin
2021-10-11In O[U]StringBuffer, make string_view params replacements for OUString onesStephan Bergmann
2021-10-04drop 'using namespace std' in l*Julien Nabet
2021-10-03A more lightweight O[U]StringConcatenationStephan Bergmann
2021-09-23Extend loplugin:stringviewparam to starts/endsWith: l10ntoolsStephan Bergmann
2021-09-22Fix typosAndrea Gelmini
2021-09-01clang-tidy:readability-redundant-member-initNoel Grandin
2021-06-28loplugin:indentation improve checks for brace alignmentNoel Grandin
2021-06-18Simplify a OUString constructionStephan Bergmann
2021-06-16Adapt implicit OString return value construction to C++23 P2266R1Stephan Bergmann
2021-06-03-Werror,-Wunused-but-set-variable (Clang 13 trunk)Stephan Bergmann
2021-05-28no need to allocate these on the heapNoel Grandin
2021-04-19use more string_view in OString APINoel Grandin
2021-04-07Updated README.md files to represent current code / use Markdown formatHossein
2021-03-24Using .md extension/Markdown syntax for modules READMEHossein
2021-01-30HelpParser::ProcessHelp: Tidy Null checksDr. David Alan Gilbert
2021-01-29loplugin:stringviewparam extend to new..Noel
2021-01-28add string_view variants of methods to O[U]StringBufferNoel
2021-01-27pocheck: don't require reference for stock labelsChristian Lohmaier
2021-01-15prep to replace stock button labelsCaolán McNamara
2020-12-29loplugin:stringviewparam: operator +Stephan Bergmann
2020-12-27Simplify loplugin:stringviewparam comparison operator handlingStephan Bergmann
2020-12-11Adapt the remaining OUString functions to std string_viewStephan Bergmann
2020-12-09Apparently, Windows doesn't have the concept of a set but empty env varStephan Bergmann
2020-12-08Assert that certain env vars are set in these build-time toolsStephan Bergmann
2020-12-08Use OString::Concat(...) + ... instead of ... + OStringLiteral(...)Stephan Bergmann
2020-11-16Clean up --disable-assert-always-abort loplugin:stringviewparamStephan Bergmann
2020-11-14loplugin:stringviewparam (l10ntools)Julien Nabet
2020-11-13tdf#123936 Formatting files in module l10ntools with clang-formatPhilipp Hofer