Lines 40-45
Link Here
|
40 |
--without-mo do not look for locales files; |
40 |
--without-mo do not look for locales files; |
41 |
--with-man look for man pages; |
41 |
--with-man look for man pages; |
42 |
--with-gnome look for GNOME help and omf files; |
42 |
--with-gnome look for GNOME help and omf files; |
|
|
43 |
--with-kde look for KDE help files; |
43 |
--append do not truncate output file before writing; |
44 |
--append do not truncate output file before writing; |
44 |
--output=FILENAME filename where to write output, by default PACKAGE_NAME.lang; |
45 |
--output=FILENAME filename where to write output, by default PACKAGE_NAME.lang; |
45 |
--topdir=TOPDIR the top of the tree containing the files to be processed, |
46 |
--topdir=TOPDIR the top of the tree containing the files to be processed, |
Lines 52-58
Link Here
|
52 |
[ -n "$1" ] && exit "$1" || exit |
53 |
[ -n "$1" ] && exit "$1" || exit |
53 |
} |
54 |
} |
54 |
|
55 |
|
55 |
TEMP=`getopt -n "$PROG" -o h -l without-mo,with-man,with-gnome,append,output:,topdir:,help -- "$@"` || Usage |
56 |
TEMP=`getopt -n "$PROG" -o h -l without-mo,with-man,with-gnome,with-kde,append,output:,topdir:,help -- "$@"` || Usage |
56 |
eval set -- "$TEMP" |
57 |
eval set -- "$TEMP" |
57 |
|
58 |
|
58 |
: ${TOPDIR:=$RPM_BUILD_ROOT} |
59 |
: ${TOPDIR:=$RPM_BUILD_ROOT} |
Lines 76-81
Link Here
|
76 |
FIND_GNOME=1 |
77 |
FIND_GNOME=1 |
77 |
shift |
78 |
shift |
78 |
;; |
79 |
;; |
|
|
80 |
--with-kde) |
81 |
FIND_KDE=1 |
82 |
shift |
83 |
;; |
79 |
--append) |
84 |
--append) |
80 |
APPEND=1 |
85 |
APPEND=1 |
81 |
shift |
86 |
shift |
Lines 168-173
Link Here
|
168 |
' |grep -v '^$' >> "$OUTFILE" ||: |
173 |
' |grep -v '^$' >> "$OUTFILE" ||: |
169 |
fi |
174 |
fi |
170 |
|
175 |
|
|
|
176 |
if [ -n "$FIND_KDE" ]; then |
177 |
find $TOPDIR -type d |sed ' |
178 |
s:'"$TOPDIR"':: |
179 |
s:\(.*/share/doc/HTML/[^/_]\+'"$NAME"'\)$:%dir \1: |
180 |
s:\(.*/share/doc/HTML/\)\([^/_]\+\)\(/'"$NAME"'\):%lang(\2) %dir \1\2\3: |
181 |
s:^\([^%].*\):: |
182 |
s:%lang(en) :: |
183 |
' |grep -v '^$' >> "$OUTFILE" ||: |
184 |
|
185 |
find "$TOPDIR" -type f -o -type l|sed ' |
186 |
s:'"$TOPDIR"':: |
187 |
s:\(.*/share/doc/HTML/\)\([^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) \1\2\3: |
188 |
s:^\([^%].*\):: |
189 |
s:%lang(en) :: |
190 |
' |grep -v '^$' >> "$OUTFILE" ||: |
191 |
fi |
171 |
} |
192 |
} |
172 |
|
193 |
|
173 |
for NAME in "$@"; do |
194 |
for NAME in "$@"; do |