summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-29 22:13:19 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-29 22:13:19 +0200
commit1215cfd777e3f1c53989814d79f0716bf6d5f9db (patch)
treea6b1fc62a0a11661a5a7bbcdfd99df69f4fe69d5
parent2a89b776f8000866202aad2ea010f93872ca5076 (diff)
downloadscripts-1215cfd777e3f1c53989814d79f0716bf6d5f9db.tar.gz
scripts-1215cfd777e3f1c53989814d79f0716bf6d5f9db.zip
tde-l10n_split_desktop: Take care of section names containing slashes.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rwxr-xr-xconversions/tde-l10n/tde-l10n_split_desktop1
1 files changed, 1 insertions, 0 deletions
diff --git a/conversions/tde-l10n/tde-l10n_split_desktop b/conversions/tde-l10n/tde-l10n_split_desktop
index 5154d5d..aaba8f4 100755
--- a/conversions/tde-l10n/tde-l10n_split_desktop
+++ b/conversions/tde-l10n/tde-l10n_split_desktop
@@ -136,6 +136,7 @@ while read L; do
printf "%s\n" "${DO#|}" | tr "|" "\n" |
while read D; do
sed -n "s|^\[\(.*\)\]$|\1|p" "$D" | \
+ sed -e 's|/|\\\\/|g' | \
while read S; do
# process variables
sed -n "/^\[$S\]/,/^\[/s|^\([^#\[][^\[]*\)\[$L\][ ]*=.*|\1|p" "$D" | \