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

(-)scripts/find-lang.in (-12 / +9 lines)
Lines 3-9 Link Here
3
# find-lang - generate list of language specific files.
3
# find-lang - generate list of language specific files.
4
# Inspired by tool with same name from W. L. Estes <wlestes@uncg.edu>.
4
# Inspired by tool with same name from W. L. Estes <wlestes@uncg.edu>.
5
#
5
#
6
# $Id: find-lang.in,v 1.7 2004/05/17 15:23:20 ldv Exp $
6
# $Id: find-lang.in,v 1.8 2004/06/09 12:54:33 ldv Exp $
7
# Copyright (C) 2000, 2003, 2004  Dmitry V. Levin <ldv@altlinux.org>
7
# Copyright (C) 2000, 2003, 2004  Dmitry V. Levin <ldv@altlinux.org>
8
#
8
#
9
# This program is free software; you can redistribute it and/or modify
9
# This program is free software; you can redistribute it and/or modify
Lines 156-199 Link Here
156
		find $TOPDIR -type d |sed '
156
		find $TOPDIR -type d |sed '
157
s:'"$TOPDIR"'::
157
s:'"$TOPDIR"'::
158
s:\(.*/gnome/help/'"$NAME"'\)$:%dir \1:
158
s:\(.*/gnome/help/'"$NAME"'\)$:%dir \1:
159
s:\(.*/gnome/help/'"$NAME"'/\)\([^/_]\+\):%dir %lang(\2) \1\2:
159
s:\(.*/gnome/help/'"$NAME"'/\)\([a-z][^/_]\+\):%dir %lang(\2) \1\2:
160
s:\(.*/share/omf/'"$NAME"'\)$:%dir \1:
160
s:\(.*/share/omf/'"$NAME"'\)$:%dir \1:
161
s:^\([^%].*\)::
161
s:^\([^%].*\)::
162
s:%lang(C) ::
163
		' |grep -v '^$' >> "$OUTFILE" ||:
162
		' |grep -v '^$' >> "$OUTFILE" ||:
164
		find "$TOPDIR" -type f |sed '
163
		find "$TOPDIR" -type f |sed '
165
s:'"$TOPDIR"'::
164
s:'"$TOPDIR"'::
166
s:\(.*/gnome/help/'"$NAME"'/\)\([^/_]\+\):%lang(\2) \1\2:
165
s:\(.*/gnome/help/'"$NAME"'/\)\([a-z][^/_]\+\):%lang(\2) \1\2:
167
s:\(.*/share/omf/'"$NAME"'/\)\([^/]*-\)\(.*\)\(\.omf\)$:%lang(\3) \1\2\3\4:
166
s:\(.*/share/omf/'"$NAME"'/\)\([^/]*-\)\([a-z][^/_]\+\)\(\.omf\)$:%lang(\3) \1\2\3\4:
168
s:^\([^%].*\)::
167
s:^\([^%].*\)::
169
s:%lang(C) ::
170
		' |grep -v '^$' >> "$OUTFILE" ||:
168
		' |grep -v '^$' >> "$OUTFILE" ||:
171
		find "$TOPDIR" -type l |sed '
169
		find "$TOPDIR" -type l |sed '
172
s:'"$TOPDIR"'::
170
s:'"$TOPDIR"'::
173
s:\(.*/gnome/help/'"$NAME"'/\)\([^/_]\+\):%lang(\2) %attr(-,root,root) \1\2:
171
s:\(.*/gnome/help/'"$NAME"'/\)\([a-z][^/_]\+\):%lang(\2) %attr(-,root,root) \1\2:
174
s:\(.*/share/omf/'"$NAME"'/\)\([^/]*-\)\(.*\)\(\.omf\)$:%lang(\3) %attr(-,root,root) \1\2\3\4:
172
s:\(.*/share/omf/'"$NAME"'/\)\([^/]*-\)\([a-z][^/_]\+\)\(\.omf\)$:%lang(\3) %attr(-,root,root) \1\2\3\4:
175
s:^\([^%].*\)::
173
s:^\([^%].*\)::
176
s:%lang(C) ::
177
		' |grep -v '^$' >> "$OUTFILE" ||:
174
		' |grep -v '^$' >> "$OUTFILE" ||:
178
	fi
175
	fi
179
176
180
	if [ -n "$FIND_KDE" ]; then
177
	if [ -n "$FIND_KDE" ]; then
181
		find $TOPDIR -type d |sed '
178
		find $TOPDIR -type d |sed '
182
s:'"$TOPDIR"'::
179
s:'"$TOPDIR"'::
183
s:\(.*/share/doc/HTML/\)\([^/_]\+\)\(/'"$NAME"'\):%lang(\2) %dir \1\2\3:
180
s:\(.*/share/doc/HTML/\)\([a-z][^/_]\+\)\(/'"$NAME"'\):%lang(\2) %dir \1\2\3:
184
s:^\([^%].*\)::
181
s:^\([^%].*\)::
185
s:%lang(en) ::
182
s:%lang(en) ::
186
	        ' |grep -v '^$' >> "$OUTFILE" ||:
183
	        ' |grep -v '^$' >> "$OUTFILE" ||:
187
184
188
		find "$TOPDIR" -type f |sed '
185
		find "$TOPDIR" -type f |sed '
189
s:'"$TOPDIR"'::
186
s:'"$TOPDIR"'::
190
s:\(.*/share/doc/HTML/\)\([^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) \1\2\3:
187
s:\(.*/share/doc/HTML/\)\([a-z][^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) \1\2\3:
191
s:^\([^%].*\)::
188
s:^\([^%].*\)::
192
s:%lang(en) ::
189
s:%lang(en) ::
193
		' |grep -v '^$' >> "$OUTFILE" ||:
190
		' |grep -v '^$' >> "$OUTFILE" ||:
194
		find "$TOPDIR" -type l |sed '
191
		find "$TOPDIR" -type l |sed '
195
s:'"$TOPDIR"'::
192
s:'"$TOPDIR"'::
196
s:\(.*/share/doc/HTML/\)\([^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) %attr(-,root,root) \1\2\3:
193
s:\(.*/share/doc/HTML/\)\([a-z][^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) %attr(-,root,root) \1\2\3:
197
s:^\([^%].*\)::
194
s:^\([^%].*\)::
198
s:%lang(en) ::
195
s:%lang(en) ::
199
		' |grep -v '^$' >> "$OUTFILE" ||:
196
		' |grep -v '^$' >> "$OUTFILE" ||:

Return to bug 4228