ALT Linux Bugzilla
– Attachment 5147 Details for
Bug 26417
find-lang and new gnome help files location
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
proposed patch
rpm-find-lang-gnome.diff (text/plain), 1.98 KB, created by
Dmitry V. Levin
on 2011-10-06 03:24:35 MSK
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Dmitry V. Levin
Created:
2011-10-06 03:24:35 MSK
Size:
1.98 KB
patch
obsolete
>diff --git a/platform.in b/platform.in >index 3378cca..7d69156 100644 >--- a/platform.in >+++ b/platform.in >@@ -243,6 +243,7 @@ > @alt@ \ > @alt@ export RPM_LIB=\"%_lib\"\ > @alt@ export RPM_LIBDIR=\"%_libdir\"\ >+@alt@ export RPM_DATADIR=\"%_datadir\"\ > @alt@ \ > @alt@ unset AUTOCONF_VERSION AUTOMAKE_VERSION LIBTOOL_VERSION GCC_VERSION ||:\ > @alt@ %{?_autoconf_version:export AUTOCONF_VERSION=\"%_autoconf_version\"}\ >diff --git a/scripts/find-lang.in b/scripts/find-lang.in >index 78d4790..c0a75a8 100755 >--- a/scripts/find-lang.in >+++ b/scripts/find-lang.in >@@ -22,6 +22,7 @@ > > : ${RPMCONFIGDIR:=@RPMCONFIGDIR@} > . "$RPMCONFIGDIR/functions" >+[ -n "${RPM_DATADIR-}" ] || RPM_DATADIR="$(rpm --eval %_datadir)" > > Usage() > { >@@ -192,8 +193,10 @@ s:%lang(\(en\|man.*\)) :: > fi > > if [ -n "$FIND_GNOME" ]; then >+# GNOME starting with version 3.2 stores its help files in $RPM_DATADIR/help/%lang/$NAME > find $TOPDIR -type d |sed -e ' > s:'"$TOPDIR"':: >+s:^\('"$RPM_DATADIR"'/help/\)\(C\|[a-z][^/_@]\+\)\(/'"$NAME"'\)$:%lang(\2) %dir \1\2\3: > s:\(.*/gnome/help/'"$NAME"'\)$:%dir \1: > s:\(.*/gnome/help/'"$NAME"'/\)\(C\|[a-z][^/_@]\+\):%dir %lang(\2) \1\2: > s:\(.*/share/omf/'"$NAME"'\)$:%dir \1: >@@ -202,6 +205,7 @@ s:%lang(\(en\|C\)) :: > ' |grep -v '^$' >> "$OUTFILE" ||: > find "$TOPDIR" -type f |sed -e ' > s:'"$TOPDIR"':: >+s:^\('"$RPM_DATADIR"'/help/\)\(C\|[a-z][^/_@]\+\)\(/'"$NAME"'/\):%lang(\2) \1\2\3: > s:\(.*/gnome/help/'"$NAME"'/\)\(C\|[a-z][^/_@]\+\):%lang(\2) \1\2: > s:\(.*/share/omf/'"$NAME"'/\)\([^/]*-\)\(C\|[a-z][^/]\+\)\(\.omf\)$:%lang(\3) \1\2\3\4: > s:^\([^%].*\):: >@@ -209,6 +213,7 @@ s:%lang(\(en\|C\)) :: > ' |grep -v '^$' >> "$OUTFILE" ||: > find "$TOPDIR" -type l |sed -e ' > s:'"$TOPDIR"':: >+s:^\('"$RPM_DATADIR"'/help/\)\(C\|[a-z][^/_@]\+\)\(/'"$NAME"'/\):%lang(\2) %attr(-,root,root) \1\2\3: > s:\(.*/gnome/help/'"$NAME"'/\)\(C\|[a-z][^/_@]\+\):%lang(\2) %attr(-,root,root) \1\2: > s:\(.*/share/omf/'"$NAME"'/\)\([^/]*-\)\(C\|[a-z][^/]\+\)\(\.omf\)$:%lang(\3) %attr(-,root,root) \1\2\3\4: > s:^\([^%].*\)::
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 26417
:
5146
| 5147