20 lines
No EOL
599 B
Bash
20 lines
No EOL
599 B
Bash
#!/bin/sh
|
|
|
|
set -e # Stop if an error occurs
|
|
|
|
./ldpc/make-ldpc ./ldpc/ex-ldpcvar-5000a.pchk 5000 10000 2 evenboth 3 no4cycle
|
|
./ldpc/make-gen ./ldpc/ex-ldpcvar-5000a.pchk ./ldpc/ex-ldpcvar-5000a.gen dense
|
|
|
|
./tensorCeral -b $1 \
|
|
| ./ldpc/encode ./ldpc/ex-ldpcvar-5000a.pchk ./ldpc/ex-ldpcvar-5000a.gen - - \
|
|
| tr --delete '\n' \
|
|
| ./tensorCeral -e - - \
|
|
| ./cl -e - ./temp.bin bestpallete.plte
|
|
|
|
./implementation ./temp.bin \
|
|
| ./tensorCeral -b \
|
|
| ./ldpc/extract ./ldpc/ex-ldpcvar-5000a.gen - - \
|
|
| tr --delete '\n' \
|
|
| ./tensorCeral -e > out.clone
|
|
./tensorCeral -d $1 out.clone
|
|
rm temp.bin |