1
0
Jan Engelhardt 2012-03-26 02:50:35 +00:00 committed by Git OBS Bridge
parent 8418e71a85
commit c03294305d

View File

@ -4,6 +4,8 @@
# released into the Public Domain
%asterisk_sounds_dir %_datadir/asterisk/sounds
#
# -l code ISO 639-1/-3 language code
# -L name Descriptive language name (no U+0020 spaces allowed)
@ -51,16 +53,16 @@ This package contains the core part of that collection in \
%asterisk_collect_sndfiles(Z) \
for pkg in %*; do \
pushd "$b"; \
find "./%sdir/$lang" -type f -iname "*.$ext" >"$fldir/tmp.files"; \
find "./%asterisk_sounds_dir/$lang" -type f -iname "*.$ext" >"$fldir/tmp.files"; \
perl -pe 's{^\./+}{%%lang('$lang') /}g' \
<"$fldir/tmp.files" >"$fldir/sounds-$pkg.files"; \
perl -pe 's{^\./*(/.*)/.+$}{%%lang('$lang') %%dir $1}g;' \
<"$fldir/tmp.files" | sort -u >>"$fldir/sounds-$pkg.files"; \
echo "%%lang($lang) %%dir %_datadir/asterisk" >>"$fldir/sounds-$pkg.files"; \
echo "%%lang($lang) %%dir %sdir" >>"$fldir/sounds-$pkg.files"; \
echo "%%lang($lang) %%dir %sdir/$lang" >>"$fldir/sounds-$pkg.files"; \
echo "%%lang($lang) %%dir %asterisk_sounds_dir" >>"$fldir/sounds-$pkg.files"; \
echo "%%lang($lang) %%dir %asterisk_sounds_dir/$lang" >>"$fldir/sounds-$pkg.files"; \
\
find "./%sdir/$lang" -type f "(" -iname "*.txt" \
find "./%asterisk_sounds_dir/$lang" -type f "(" -iname "*.txt" \
-o -name "[A-Z]*" ")" >>"$fldir/rest1.files"; \
\
popd; \