On Sun, 28 Apr 2024, Florian Schmaus wrote:
--- a/eclass/texlive-common.eclass
+++ b/eclass/texlive-common.eclass
@@ -270,10 +270,18 @@ texlive-common_update_tlpdb() {
touch "${new_tlpdb}" || die
if [[ -d "${tlpobj}" ]]; then
- find "${tlpobj}" -maxdepth 1 -type f -name "*.tlpobj" -print0 | - sort -z |
- xargs -0 --no-run-if-empty cat >> "${new_tlpdb}"
- assert "generating tlpdb failed"
+ all_tlpobjs() {
+ find "${tlpobj}" -maxdepth 1 -type f -name "*.tlpobj" -print0 |
+ sort -z
+ assert "Error enumerating all tlpobj files"
+ }
+ (
+ while IFS="" read -d $'\0' -r f; do
+ cat "${f}" || die "Failed to read ${f}"
+ # Ensure there is an empty line between every tlpobj entry.
+ echo
+ done < <(all_tlpobjs)
+ ) >> "${new_tlpdb}"
fi
if [[ -f ${tlpdb} ]]; then
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 11:12:24 |
Calls: | 10,387 |
Calls today: | 2 |
Files: | 14,060 |
Messages: | 6,416,693 |