mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 13:30:52 -05:00 
			
		
		
		
	git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6437 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
		
			
				
	
	
		
			29 lines
		
	
	
		
			670 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			670 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/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
 |