# Exit on error:
set -e

mkdir xxd
cd xxd
wget https://github.com/jnweiger/xxd/raw/master/Makefile
wget https://github.com/jnweiger/xxd/raw/master/README
wget https://github.com/jnweiger/xxd/raw/master/xxd.1
wget https://github.com/jnweiger/xxd/raw/master/xxd.c
make
install -m755 xxd /bin
install -m644 xxd.1 /man/man1
cd ..
#rm -rf xxd

exit 0
