https://bugs.documentfoundation.org/show_bug.cgi?id=165695
--- Comment #6 from studog <[email protected]> --- Just in case it matters: unzip_ods () { local filename="${1}"; if [[ -z "${filename}" ]]; then echo "ERROR: Required parameter <filename> missing"; return 1; fi; local dirname="${filename}.dir"; if [[ -e "${dirname}" ]]; then echo "ERROR: '${dirname}' exists, not overwriting"; return 2; fi; mkdir "${dirname}"; cd "${dirname}"; unzip "../${filename}"; for f in *.xml; do local name="${f%.*}"; local extension="${f##*.}"; local bakfilename="${name}-bak.${extension}"; cp -pr "${f}" "${bakfilename}"; xmllint --format "${bakfilename}" > "${f}"; done } zip_ods () { local filename="${1}"; if [[ -z "${filename}" ]]; then echo "ERROR: Required parameter <filename> missing"; return 1; fi; if [[ -e "${filename}" ]]; then echo "ERROR: '${filename}' exists, not overwriting"; return 2; fi; zip -0qX "${filename}" mimetype; zip -DqrX "${filename}" Basic/ settings.xml; zip -DqrX "${filename}" $(find Configurations2 -type f); zip -0qX "${filename}" $(find Configurations2 -type d -empty); zip -DqrX "${filename}" Scripts/ styles.xml manifest.rdf content.xml meta.xml Thumbnails/ META-INF/; echo "===================================================================================================="; echo "WARNING: This is a hand-rolled solution and may be incomplete"; echo " Please verify against the original ODS file where possible"; echo "===================================================================================================="; echo; unzip -v "${filename}" } -- You are receiving this mail because: You are the assignee for the bug.
