ropipe/install.sh

16 lines
354 B
Bash
Raw Normal View History

2021-10-06 17:50:47 +02:00
if [ $(id -u) -ne 0 ]
then echo "Please run as root"
exit
fi
if [ -z $(which gcc) ]
then echo "Please install gcc first"
exit
fi
echo "Compiling ropipe"
gcc -o ropipe ropipe.c
mkdir -p /usr/local/share/man/man1/
echo "Copying man file"
cp ropipe.1 /usr/local/share/man/man1/ropipe.1
echo "Installing binary"
cp ropipe /usr/bin/ropipe
echo "Done"