# Get it
cd
test -f installed/texinfo-6.5.tar.xz &&
mv installed/texinfo-6.5.tar.xz .
test ! -f texinfo-6.5.tar.xz &&
wget http://ftpmirror.gnu.org/gnu/texinfo/texinfo-6.5.tar.xz
# Verify tarball w/ sha1sum:
# (this came from my gpg-verified tarball)
echo "72a06b48862911c638787cc3307871b990a59726 texinfo-6.5.tar.xz" | \
sha1sum -c
# Extract the source
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "texinfo-*" -exec rm -r {} \;
tar xJvf ~/texinfo-6.5.tar.xz
cd texinfo-6.5
test $UID = 0 && chown -R root:root .
# See ./README, ./INSTALL, and if upgrading - ./NEWS, ./ChangeLog
# If you do need translations, leave off --disable-nls
# >= 5.0 includes a Perl-based makeinfo/texi2any and uses extension (XS)
# modules. If you don't want to use those add --disable-perl-xs
# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --docdir=/usr/doc/texinfo-6.5 \
--infodir=/usr/info --libdir=/usr/lib64 --mandir=/usr/man \
--disable-nls
# Configure the build for anything else
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --docdir=/usr/doc/texinfo-6.5 \
--infodir=/usr/info --mandir=/usr/man --disable-nls
# Build it
make
# Become root to install it
su
# Remove any existing Slackware packages
test -x /sbin/removepkg && /sbin/removepkg texinfo
# Remove docs from old versions
find /usr/doc -maxdepth 1 -type d -name "texinfo-*" -exec rm -r {} \;
# Install it
make install
# Install TeX files
test -d /usr/share/texmf &&
make TEXMF=/usr/share/texmf install-tex
# If you don't have a /usr/info/dir file (which is what you get when you
# run 'info'), there's a sample here:
# ./util/dir-example
# Fix up your existing /usr/info/dir file. After running this, the old copy
# will be /usr/info/dir.old Try it (run 'info'), if it looks OK, you can
# remove the old one if you like.
test -s /usr/info/dir && contrib/fix-info-dir /usr/info
# When compiling and installing other software, with --prefix=/usr,
# configure will usually default to /usr/share/info for --infodir
# You will either need to remember to add --infodir=/usr/info or you can
# create a symlink from /usr/share/info to /usr/info
test -d /usr/share/info && test ! -L /usr/share/info &&
( mv -i /usr/share/info/*.info /usr/info/
rm -r /usr/share/info )
test ! -L /usr/share/info && ln -s /usr/info /usr/share/info
# If you install something that has info files, make sure it (or you
# manually) runs 'install-info infofile.info'
# Become yourself again
exit
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/texinfo-*.tar.*
mv texinfo-6.5.tar.xz installed/
# If you ever want to uninstall Texinfo this should do it:
cd
su
test -d src/texinfo-* && ( cd src/texinfo-* ; make uninstall )