mirror of
https://github.com/xiph/opus.git
synced 2025-05-31 07:37:42 +00:00
13 lines
520 B
Bash
Executable file
13 lines
520 B
Bash
Executable file
#!/bin/sh
|
|
|
|
for i in fargan_data.c pitchdnn_data.c dred_rdovae_dec_data.c dred_rdovae_enc_data.c
|
|
do
|
|
cat dnn/$i | perl -ne 'if (/DEBUG/ || /#else/) {$skip=1} if (!$skip && !/ifdef DOT_PROD/) {s/^ *//; s/, /,/g; print $_} elsif (/endif/) {$skip=0}' > tmp_data.c
|
|
mv tmp_data.c dnn/$i
|
|
done
|
|
|
|
for i in plc_data.c
|
|
do
|
|
cat dnn/$i | perl -ne 'if (/#else.*DOT_PROD/) {$skip=1} if (!$skip && !/ifdef DOT_PROD/) {s/^ *//; s/, /,/g; print $_} elsif (/endif.*DOT_PROD/) {$skip=0}' > tmp_data.c
|
|
mv tmp_data.c dnn/$i
|
|
done
|