# GNU recode 3.6
# ==============
# Prerequisites:
# flex
cd
test -f installed/recode-3.6.tar.gz && mv installed/recode-3.6.tar.gz .
test ! -f recode-3.6.tar.gz &&
wget ftp://ftp.gnu.org/gnu/recode/recode-3.6.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "recode-*" -exec rm -r {} \;
tar xzvf ~/recode-3.6.tar.gz
cd recode-3.6
test $UID = 0 && chown -R root:root .
./configure --disable-nls
make
su -c "make install ; ldconfig"
cd
mkdir -p -m 0700 installed
rm -f installed/recode-*.tar.*
mv recode-3.6.tar.gz installed/
# If you ever want to uninstall recode, this should do it:
cd
su
test -d src/recode-* && ( cd src/recode-* ; make uninstall )
rm -f /usr/local/bin/recode /usr/local/info/recode.info \
/usr/local/lib/charset.alias /usr/local/lib/librecode.* \
/usr/local/man/man1/recode.1
( cd /usr/local/include ; rm -f recode.h recodext.h )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "recode-*" -exec rm -r {} \;
rm -f ~/installed/recode-*.tar.*