#!/bin/sh
echo ''
echo '-----------------------------------------------'
echo 'Compiling rpl v1.3.0b3 using default compiler "cc"'
if cc -O2 src/replace.c -o bin/rpl  ; then  
	echo 'Compilation complete!'
	echo 'Binary = ./bin/rpl'
	echo ''
	echo 'Type "./bin/rpl -L" to read the license.'
	echo 'Type "./bin/rpl -h" for usage information.'
	echo ''
	echo 'SYSADMINS:'
	echo 'It is recommended that you install rpl in a'
	echo 'system-wide binary directory such as /usr/local/bin'
	echo 'You must then chmod the binary to 0755, 0511, or'
	echo 'similar so your users can execute it.'
	echo ''
	echo 'To install the rpl man page copy ./man/man1/rpl.1'
	echo 'into your local man dir (Usually /usr/local/man/man1)'
	echo 'Or add the rpl man directory to your MANPATH.'
	echo 'chmod the man page to 0644 or similar so everyone can'
	echo 'read it.'
	echo ''
else
	echo ''
	echo 'Compilation Failed!'
	echo ''
fi
