#!/bin/bash declare -A replacements replacements["Agency FB"]="Noto Sans" replacements["Segoe UI"]="Noto Sans" replacements["Univers 45 Light"]="Noto Sans" replacements["Trebuchet MS"]="Noto Sans" replacements["Perpetua"]="Noto Sans" replacements["Calibri Light"]="Noto Sans" replacements["Rockwell"]="Noto Sans" replacements["DFKai-SB"]="Noto Sans" replacements["Gill Sans MT"]="Noto Sans" replacements["BentonSans Medium"]="Noto Sans" replacements["BentonSans"]="Noto Sans" replacements["AdvPS88D1"]="Noto Sans" replacements["NexusSansOT"]="Noto Sans" replacements["Segoe Script"]="Noto Sans" replacements["Impact"]="Noto Sans" replacements["Century Gothic"]="Noto Sans" replacements["Kings Caslon Text"]="Noto Sans" replacements["Times"]="Liberation Serif" replacements["Jokerman"]="Noto Sans" replacements["FreeSans"]="Noto Sans" replacements["DINPro-Medium"]="Noto Sans" replacements["Open Sans Light"]="Noto Sans" replacements["Lora - regular"]="Noto Sans" replacements["Tahoma"]="Noto Sans" replacements["Thorndale"]="Liberation Serif" replacements["Albany"]="Liberation Sans" replacements["Lucida Sans Unicode"]="Noto Sans" replacements["Candara"]="Noto Sans" replacements["Verdana"]="Noto Sans" replacements["Gill Sans MT"]="Noto Sans" extracted_folder=".temp_extracted" for file in $(find "$1" -type f); do file_name=$(basename "$file") current_extension="${file_name##*.}" if [[ $current_extension == "docx" || $current_extension == "xlsx" || $current_extension == "pptx" || $current_extension == "odt" ]]; then base_name="${file_name%.*}" # move the file to a new .zip file cp "$file" "${base_name}.zip" # extract the zip file to a temporary folder unzip -qq ./"${base_name}.zip" -d "$extracted_folder" > /dev/null for key in "${!replacements[@]}" do file_changed=false value=${replacements[$key]} for subfile in $(find "$extracted_folder" -type f); do # Replace only if it's between quotes if grep -q "\"$key\"" "$subfile"; then sed -i "s/\"$key\"/\"$value\"/g" "$subfile" file_changed=true # or between '"' elif grep -q ""$key"" "$subfile"; then sed -i "s/"$key"/\"$value\"/g" "$subfile" file_changed=true fi done if [ "$file_changed" = true ]; then # Create a new zip file with the modified files cd "$extracted_folder"; zip -r ../"${base_name}.zip" . > /dev/null; cd .. mv "${base_name}.zip" "$file" echo "Replacing '$key' with '$value' in $file" fi done # Clean up the temporary extracted folder rm -rf "$extracted_folder" fi done 11:46:03+00:00 Luboš Luňák l.lunak@collabora.com 2019-05-24T09:45:26+00:00 cb7a39ac64253a6d0e11cfe1837ad3da2465c38e As in, really disable, so that they do not even show. This moreover avoids tons of D9025 warnings from MSVC about overriding -W4 with -w. Change-Id: Ia2e72fd72d883d91bdd89e467ee42f259e2ae033 Reviewed-on: https://gerrit.libreoffice.org/72899 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
As in, really disable, so that they do not even show. This moreover
avoids tons of D9025 warnings from MSVC about overriding -W4 with -w.

Change-Id: Ia2e72fd72d883d91bdd89e467ee42f259e2ae033
Reviewed-on: https://gerrit.libreoffice.org/72899
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
drop unneeded define 2018-06-13T19:37:02+00:00 David Tardon dtardon@redhat.com 2018-06-13T13:51:10+00:00 6a8eae612efcb665bb5efc2752af2bf514d11a12 Change-Id: I3a61e345593959c47b62ba2da97abafca24ee0e8 Reviewed-on: https://gerrit.libreoffice.org/55754 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
Change-Id: I3a61e345593959c47b62ba2da97abafca24ee0e8
Reviewed-on: https://gerrit.libreoffice.org/55754
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
upload libstaroffice 0.0.6 2018-04-26T20:10:41+00:00 David Tardon dtardon@redhat.com 2018-04-26T06:41:52+00:00 488f70e0c5209fd092b67252fdebb784efa04673 Change-Id: Id3a845174e7cebad999895bc57e2d05f36f3d597 Reviewed-on: https://gerrit.libreoffice.org/53499 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
Change-Id: Id3a845174e7cebad999895bc57e2d05f36f3d597
Reviewed-on: https://gerrit.libreoffice.org/53499
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
-I$(dir $(3)) in gb_CObject__command_pattern is no longer needed 2017-11-03T22:44:11+00:00 Stephan Bergmann sbergman@redhat.com 2017-11-03T15:41:53+00:00 f218f8f6c8c587d2d78679f935093329f145fede ...in com_MSC_class.mk now, similar to ecbaf980625a9e7b06abe91c7c70e78f6ad469a7 for com_GCC_class.mk. Three libraries built from external sources (for Windows only) needed adjustment. Change-Id: Id8976a30b80efff6119afb18ccaf6811fe27d2f8 Reviewed-on: https://gerrit.libreoffice.org/44270 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
...in com_MSC_class.mk now, similar to ecbaf980625a9e7b06abe91c7c70e78f6ad469a7
for com_GCC_class.mk.  Three libraries built from external sources (for Windows
only) needed adjustment.

Change-Id: Id8976a30b80efff6119afb18ccaf6811fe27d2f8
Reviewed-on: https://gerrit.libreoffice.org/44270
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
upload libstaroffice 0.0.4 2017-07-20T08:48:05+00:00 David Tardon dtardon@redhat.com 2017-07-17T07:06:58+00:00 44401915b89582ebc50c644c4db38466a841d457 Change-Id: Id350c51cff29d27c02cfe5e4fdb1c66be58001ad Reviewed-on: https://gerrit.libreoffice.org/40037 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Change-Id: Id350c51cff29d27c02cfe5e4fdb1c66be58001ad
Reviewed-on: https://gerrit.libreoffice.org/40037
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
upload libstaroffice 0.0.3 2017-02-22T12:17:20+00:00 David Tardon dtardon@redhat.com 2017-02-22T09:28:43+00:00 ac956e0424c79b59bb5ad433d18b3016bd47b9b2 Change-Id: I5cb29e5cc8635988e84f0285164cf139ed4a62b0 Reviewed-on: https://gerrit.libreoffice.org/34536 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
Change-Id: I5cb29e5cc8635988e84f0285164cf139ed4a62b0
Reviewed-on: https://gerrit.libreoffice.org/34536
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
integrate libstaroffice 2016-08-11T06:13:27+00:00 osnola alonso@loria.fr 2016-08-10T10:43:56+00:00 1faae1f37521df7734462443936e1469820fd489 Change-Id: I85913f1bd1af5d102573040588cca9d8ddeebb5d
Change-Id: I85913f1bd1af5d102573040588cca9d8ddeebb5d