a0b3eae26e
Fix find-lang to work with new XDG help system OBS-URL: https://build.opensuse.org/request/show/109136 OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=191
16 lines
700 B
Diff
16 lines
700 B
Diff
Index: scripts/find-lang.sh
|
|
===================================================================
|
|
--- scripts/find-lang.sh.orig
|
|
+++ scripts/find-lang.sh
|
|
@@ -139,8 +139,8 @@ s:%lang(C) ::
|
|
|
|
find $TOP_DIR -type d|sed '
|
|
s:'"$TOP_DIR"'::
|
|
-'"$NO_ALL_NAME$GNOME"'s:\(.*/share/help/\)\([^/_]\+\)\(/'"$NAME"'\)$:%lang(\2) %doc \1\2\3/:
|
|
-'"$ALL_NAME$GNOME"'s:\(.*/share/help/\)\([^/_]\+\)\(/[a-zA-Z0-9.\_\-]\+\)$:%lang(\2) %doc \1\2\3/:
|
|
+'"$NO_ALL_NAME$GNOME"'s:\(.*/share/help/\)\([^/_]\+\)\([^/]*\)\(/'"$NAME"'\)$:%lang(\2) %doc \1\2\3\4/:
|
|
+'"$ALL_NAME$GNOME"'s:\(.*/share/help/\)\([^/_]\+\)\([^/]*\)\(/[a-zA-Z0-9.\_\-]\+\)$:%lang(\2) %doc \1\2\3\4/:
|
|
s:^\([^%].*\)::
|
|
s:%lang(C) ::
|
|
/^$/d' >> $MO_NAME_NEW
|