ALT Linux Bugzilla
– Attachment 427 Details for
Bug 4228
Неправильная работа макроса %find_lang
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Please try this patch
find-lang.in.diff (text/plain), 2.81 KB, created by
Dmitry V. Levin
on 2004-06-09 16:57:00 MSD
(
hide
)
Description:
Please try this patch
Filename:
MIME Type:
Creator:
Dmitry V. Levin
Created:
2004-06-09 16:57:00 MSD
Size:
2.81 KB
patch
obsolete
>Index: scripts/find-lang.in >=================================================================== >RCS file: /home/cvs/cvsroot/rpm-4_0/scripts/find-lang.in,v >retrieving revision 1.7 >retrieving revision 1.8 >diff -u -r1.7 -r1.8 >--- scripts/find-lang.in 17 May 2004 15:23:20 -0000 1.7 >+++ scripts/find-lang.in 9 Jun 2004 12:54:33 -0000 1.8 >@@ -3,7 +3,7 @@ > # find-lang - generate list of language specific files. > # Inspired by tool with same name from W. L. Estes <wlestes@uncg.edu>. > # >-# $Id: find-lang.in,v 1.7 2004/05/17 15:23:20 ldv Exp $ >+# $Id: find-lang.in,v 1.8 2004/06/09 12:54:33 ldv Exp $ > # Copyright (C) 2000, 2003, 2004 Dmitry V. Levin <ldv@altlinux.org> > # > # This program is free software; you can redistribute it and/or modify >@@ -156,44 +156,41 @@ > find $TOPDIR -type d |sed ' > s:'"$TOPDIR"':: > s:\(.*/gnome/help/'"$NAME"'\)$:%dir \1: >-s:\(.*/gnome/help/'"$NAME"'/\)\([^/_]\+\):%dir %lang(\2) \1\2: >+s:\(.*/gnome/help/'"$NAME"'/\)\([a-z][^/_]\+\):%dir %lang(\2) \1\2: > s:\(.*/share/omf/'"$NAME"'\)$:%dir \1: > s:^\([^%].*\):: >-s:%lang(C) :: > ' |grep -v '^$' >> "$OUTFILE" ||: > find "$TOPDIR" -type f |sed ' > s:'"$TOPDIR"':: >-s:\(.*/gnome/help/'"$NAME"'/\)\([^/_]\+\):%lang(\2) \1\2: >-s:\(.*/share/omf/'"$NAME"'/\)\([^/]*-\)\(.*\)\(\.omf\)$:%lang(\3) \1\2\3\4: >+s:\(.*/gnome/help/'"$NAME"'/\)\([a-z][^/_]\+\):%lang(\2) \1\2: >+s:\(.*/share/omf/'"$NAME"'/\)\([^/]*-\)\([a-z][^/_]\+\)\(\.omf\)$:%lang(\3) \1\2\3\4: > s:^\([^%].*\):: >-s:%lang(C) :: > ' |grep -v '^$' >> "$OUTFILE" ||: > find "$TOPDIR" -type l |sed ' > s:'"$TOPDIR"':: >-s:\(.*/gnome/help/'"$NAME"'/\)\([^/_]\+\):%lang(\2) %attr(-,root,root) \1\2: >-s:\(.*/share/omf/'"$NAME"'/\)\([^/]*-\)\(.*\)\(\.omf\)$:%lang(\3) %attr(-,root,root) \1\2\3\4: >+s:\(.*/gnome/help/'"$NAME"'/\)\([a-z][^/_]\+\):%lang(\2) %attr(-,root,root) \1\2: >+s:\(.*/share/omf/'"$NAME"'/\)\([^/]*-\)\([a-z][^/_]\+\)\(\.omf\)$:%lang(\3) %attr(-,root,root) \1\2\3\4: > s:^\([^%].*\):: >-s:%lang(C) :: > ' |grep -v '^$' >> "$OUTFILE" ||: > fi > > if [ -n "$FIND_KDE" ]; then > find $TOPDIR -type d |sed ' > s:'"$TOPDIR"':: >-s:\(.*/share/doc/HTML/\)\([^/_]\+\)\(/'"$NAME"'\):%lang(\2) %dir \1\2\3: >+s:\(.*/share/doc/HTML/\)\([a-z][^/_]\+\)\(/'"$NAME"'\):%lang(\2) %dir \1\2\3: > s:^\([^%].*\):: > s:%lang(en) :: > ' |grep -v '^$' >> "$OUTFILE" ||: > > find "$TOPDIR" -type f |sed ' > s:'"$TOPDIR"':: >-s:\(.*/share/doc/HTML/\)\([^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) \1\2\3: >+s:\(.*/share/doc/HTML/\)\([a-z][^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) \1\2\3: > s:^\([^%].*\):: > s:%lang(en) :: > ' |grep -v '^$' >> "$OUTFILE" ||: > find "$TOPDIR" -type l |sed ' > s:'"$TOPDIR"':: >-s:\(.*/share/doc/HTML/\)\([^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) %attr(-,root,root) \1\2\3: >+s:\(.*/share/doc/HTML/\)\([a-z][^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) %attr(-,root,root) \1\2\3: > s:^\([^%].*\):: > s:%lang(en) :: > ' |grep -v '^$' >> "$OUTFILE" ||:
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 4228
: 427