diff options
| author | hibby <d@vehibberd.com> | 2018-02-16 15:18:44 +0000 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2018-02-16 15:18:44 +0000 |
| commit | 368f5331a7641772aa7e0cd1feea57d09a394a36 (patch) | |
| tree | b421ac60cc6eb726896ea268ea24e47fc4ce7c88 /lib/ldpc/LDPC-install | |
| parent | 71c717edc92fa771c857b3c2e5ed65f523f68f90 (diff) | |
| parent | 37f727ac0746fd85504aa46c1f023c09b3eff33a (diff) | |
Update upstream source from tag 'upstream/1.8.0+repack'
Update to upstream version '1.8.0+repack'
with Debian dir a83ef78cb70a32d1211871fdc08f3ffa295e45a8
Diffstat (limited to 'lib/ldpc/LDPC-install')
| -rwxr-xr-x | lib/ldpc/LDPC-install | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/ldpc/LDPC-install b/lib/ldpc/LDPC-install new file mode 100755 index 00000000..0ca12ace --- /dev/null +++ b/lib/ldpc/LDPC-install @@ -0,0 +1,28 @@ +#!/bin/sh + +# Copy the LPDC programs to the directory specified. The program file +# might be the name of the program, or (eg, on Cygwin) the name of the +# program with .exe appended. + +if [ x$1 == x -o x$2 != x ]; then + echo Usage: LDPC-install bin-directory + exit 1 +fi + +echo Installing LPDC programs in $1 + +mkdir -p $1 + +for prog in make-pchk alist-to-pchk pchk-to-alist \ + make-ldpc print-pchk make-gen print-gen \ + rand-src encode transmit decode extract verify; do + if [ -f $prog ]; then + cp $prog $1 + elif [ -f $prog.exe ]; then + cp $prog.exe $1 + else + echo No program $prog to install + fi +done + +echo Done |
