View | Details | Raw Unified | Return to bug 15301
Collapse All | Expand All

(-)find-lang~ (-5 / +6 lines)
Lines 69-74 This is free software; see the source fo Link Here
69
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
69
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
70
70
71
Written by Dmitry V. Levin <ldv@altlinux.org>
71
Written by Dmitry V. Levin <ldv@altlinux.org>
72
Modified by Sergey V Turchin <zerg@altlinux.org>
72
EOF
73
EOF
73
	exit 0
74
	exit 0
74
}
75
}
Lines 164-176 FindLang() Link Here
164
	if [ -n "$FIND_MO" ]; then
165
	if [ -n "$FIND_MO" ]; then
165
		find "$TOPDIR" -type f |sed -e '
166
		find "$TOPDIR" -type f |sed -e '
166
s:'"$TOPDIR"'::
167
s:'"$TOPDIR"'::
167
s:\(.*/share/locale/\)\([a-z][^/_@]\+\)\(.*'"$NAME"'\.mo$\):%lang(\2) \1\2\3:
168
s:\(.*/locale/\)\([a-z][^/_@]\+\)\(.*'"$NAME"'\.mo$\):%lang(\2) \1\2\3:
168
s:^\([^%].*\)::
169
s:^\([^%].*\)::
169
s:%lang(en) ::
170
s:%lang(en) ::
170
		' |grep -v '^$' >> "$OUTFILE" ||:
171
		' |grep -v '^$' >> "$OUTFILE" ||:
171
		find "$TOPDIR" -type l |sed -e '
172
		find "$TOPDIR" -type l |sed -e '
172
s:'"$TOPDIR"'::
173
s:'"$TOPDIR"'::
173
s:\(.*/share/locale/\)\([a-z][^/_@]\+\)\(.*'"$NAME"'\.mo$\):%lang(\2) %attr(-,root,root) \1\2\3:
174
s:\(.*/locale/\)\([a-z][^/_@]\+\)\(.*'"$NAME"'\.mo$\):%lang(\2) %attr(-,root,root) \1\2\3:
174
s:^\([^%].*\)::
175
s:^\([^%].*\)::
175
s:%lang(en) ::
176
s:%lang(en) ::
176
		' |grep -v '^$' >> "$OUTFILE" ||:
177
		' |grep -v '^$' >> "$OUTFILE" ||:
Lines 219-238 s:%lang(\(en\|C\)) :: Link Here
219
	if [ -n "$FIND_KDE" ]; then
220
	if [ -n "$FIND_KDE" ]; then
220
		find $TOPDIR -type d |sed -e '
221
		find $TOPDIR -type d |sed -e '
221
s:'"$TOPDIR"'::
222
s:'"$TOPDIR"'::
222
s:\(.*/share/doc/HTML/\)\([a-z][^/_]\+\)\(/'"$NAME"'\):%lang(\2) %dir \1\2\3:
223
s:\(.*/doc/HTML/\)\([a-z][^/_]\+\)\(/'"$NAME"'\):%lang(\2) %dir \1\2\3:
223
s:^\([^%].*\)::
224
s:^\([^%].*\)::
224
s:%lang(en) ::
225
s:%lang(en) ::
225
	        ' |grep -v '^$' >> "$OUTFILE" ||:
226
	        ' |grep -v '^$' >> "$OUTFILE" ||:
226
227
227
		find "$TOPDIR" -type f |sed -e '
228
		find "$TOPDIR" -type f |sed -e '
228
s:'"$TOPDIR"'::
229
s:'"$TOPDIR"'::
229
s:\(.*/share/doc/HTML/\)\([a-z][^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) \1\2\3:
230
s:\(.*/doc/HTML/\)\([a-z][^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) \1\2\3:
230
s:^\([^%].*\)::
231
s:^\([^%].*\)::
231
s:%lang(en) ::
232
s:%lang(en) ::
232
		' |grep -v '^$' >> "$OUTFILE" ||:
233
		' |grep -v '^$' >> "$OUTFILE" ||:
233
		find "$TOPDIR" -type l |sed -e '
234
		find "$TOPDIR" -type l |sed -e '
234
s:'"$TOPDIR"'::
235
s:'"$TOPDIR"'::
235
s:\(.*/share/doc/HTML/\)\([a-z][^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) %attr(-,root,root) \1\2\3:
236
s:\(.*/doc/HTML/\)\([a-z][^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) %attr(-,root,root) \1\2\3:
236
s:^\([^%].*\)::
237
s:^\([^%].*\)::
237
s:%lang(en) ::
238
s:%lang(en) ::
238
		' |grep -v '^$' >> "$OUTFILE" ||:
239
		' |grep -v '^$' >> "$OUTFILE" ||:

Return to bug 15301