From 268eabec772aee3ac6330bc99d34b4566bda5659 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 17 Aug 1999 04:48:57 +0000 Subject: [PATCH] r73: Initial Import --- debian/changelog | 7 +++++++ dh_getopt.pl | 6 +++++- dh_installmanpages | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 11a5e95..8124e62 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +debhelper (0.75) unstable; urgency=low + + * Actually exit if there is an unknown option onthe command line (oooops!) + * Fix .so file conversion to actually work (#19933). + + -- Joey Hess Thu, 19 Mar 1998 11:54:58 -0800 + debhelper (0.74) unstable; urgency=low * dh_installmanpages: convert .so links to symlinks at last (#19829). diff --git a/dh_getopt.pl b/dh_getopt.pl index f91a42e..0c9bba0 100755 --- a/dh_getopt.pl +++ b/dh_getopt.pl @@ -64,7 +64,7 @@ use Getopt::Long; Getopt::Long::config("bundling"); # Parse options. -GetOptions( +$ret=GetOptions( "v" => \$verbose, "verbose" => \$verbose, @@ -113,6 +113,10 @@ GetOptions( "init-script=s" => \$init_script, ); +if (!$ret) { + $parse_error="exiting with unknown option."; +} + # Check to see if -V was specified. If so, but no parameters were passed, # the variable will be defined but empty. if (defined($version_info)) { diff --git a/dh_installmanpages b/dh_installmanpages index d5e9198..a8fb1e9 100755 --- a/dh_installmanpages +++ b/dh_installmanpages @@ -60,7 +60,7 @@ for PACKAGE in $DH_DOPACKAGES; do # Now the .so conversion. for file in `find $TMP/usr/man $TMP/usr/X11*/man -type f -size -256c 2>/dev/null` do - solink=expr "`head -1 $file`" : '\.so \(.*\)' + solink=`expr "\`head -1 $file\`" : '\.so \(.*\)'` if [ "$solink" ]; then doit "rm -f $file" # The .so links include the subdir the page is in, -- 2.39.5