# Exit on error:
set -e

wget https://sourceforge.net/projects/joe-editor/files/JOE\ sources/joe-4.6/joe-4.6.tar.gz
tar xf joe-4.6.tar.gz
cd joe-4.6

# Set line length to 70 characters:
sed -i '/ rmargin /s,76,70,' joe/options.c

# Switch french spacing on:
sed -i '/french spacing/s,0,1,' joe/options.c

./configure --prefix=
make install
cd ..
rm -rf joe-4.6
#rm joe-4.6.tar.gz

exit 0
