# Exit on error:
set -e

wget http://ftpmirror.gnu.org/nano/nano-2.3.2.tar.gz
tar xf nano-2.3.2.tar.gz
cd nano-2.3.2

./configure --prefix= \
    --disable-wrapping \
    --disable-nls

make install
cd ..
rm -rf nano-2.3.2
rm nano-2.3.2.tar.gz

echo Creating /etc/nanorc...
echo "set fill 70" > /etc/nanorc
echo Done

exit 0
