From e7b15707fd400a1775864ea61f4a2665932c7c88 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 17 Aug 1999 04:39:32 +0000 Subject: [PATCH] r40: Initial Import --- debian/changelog | 6 ++++++ dh_installdebfiles.1 | 2 +- dh_lib | 10 +++++++--- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 506a35e..689ff71 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +debhelper (0.34) unstable; urgency=low + + * Fixed typo #16215. + + -- Joey Hess Mon, 22 Dec 1997 14:41:46 -0500 + debhelper (0.33) unstable; urgency=low * examples/*: use prefix, instead of PREFIX, becuase autoconf uses that. diff --git a/dh_installdebfiles.1 b/dh_installdebfiles.1 index 0240f93..cf1580d 100644 --- a/dh_installdebfiles.1 +++ b/dh_installdebfiles.1 @@ -9,7 +9,7 @@ files into the DEBIAN directory in package build directories with the correct permissions, canculating shared library dependancies, and creating a control file. .P -This program is depricated. It is now merely a wrapper around three other +This program is deprecated. It is now merely a wrapper around three other programs, and you may replace any calls to this program by: .P dh_installdeb diff --git a/dh_lib b/dh_lib index 388b7f7..7a56c15 100644 --- a/dh_lib +++ b/dh_lib @@ -141,9 +141,13 @@ for i; do esac done -# Get the package version from the changelog. -LINE=`head -1 debian/changelog` -VERSION=`expr "$LINE" : '.* (\(.*\))'` +# Get the package version. +# Note that the 2>/dev/null is because a bug in dpkg-parsechangelog makes it +# output a bogus error message to stderr. +# If it actually has a real error, then the expr will fail, and this whole +# script will come crashing to a halt, which is good enough to inform +# the user something's wrong. :-) +VERSION=`expr "\`dpkg-parsechangelog 2>/dev/null\`" : '.*Version: \(.*\).*Distribution:'` # Get the name of the main binary package. MAINPACKAGE=`grep ^Package: debian/control | cut -d " " -f 2 | head -1` -- 2.39.5