patch - Applies diffs ChangeLog

HOWTO


# GNU patch 2.5.4
# ===============
# Slackware 8.0, 8.1, 9.0, 9.1, 10.0, 10.1, and 10.2 include patch version
# 2.5.4 in the 'bin' package

cd
test -f installed/patch-2.5.4.tar.gz &&
mv installed/patch-2.5.4.tar.gz .
test ! -f patch-2.5.4.tar.gz &&
wget ftp://ftp.gnu.org/gnu/patch/patch-2.5.4.tar.gz

# Verify tarball w/ md5sum:
# (this came from a verified list of ftp.gnu.org md5sums)
echo "ee5ae84d115f051d87fcaaef3b4ae782  patch-2.5.4.tar.gz" | md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "patch-*" -exec rm -r {} \;
tar xzvf ~/patch-2.5.4.tar.gz
cd patch-2.5.4
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr
make
su -c "make install"
chmod -R u+w .

# Slackware compresses patch's man page with gzip, so if you're replacing
# Slackware's, you may want to do this too:
su -c "gzip -9 /usr/man/man1/patch.1"

cd
mkdir -p -m 0700 installed
rm -f installed/patch-*.tar.*
mv patch-2.5.4.tar.gz installed/

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2005-09-21 11:40am
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]