# Output a warning.
sub warning { my $message=shift;
- print STDERR basename().": $message\n";
+ print STDERR basename($0).": $message\n";
}
-# Returns the basename of the program.
-sub basename {
- my $fn=$0;
+# Returns the basename of the argument passed to it.
+sub basename { my $fn=shift;
$fn=~s:.*/(.*?):$1:;
return $fn;
}
}
# TODO: do this in perl, perhaps?
- complex_doit("echo \"# Automatically added by ".basename().">> $outfile");
+ complex_doit("echo \"# Automatically added by ".basename($0).">> $outfile");
complex_doit("sed \"$sed\" $infile >> $outfile");
complex_doit("echo '# End automatically added section' >> $outfile");
}
+debhelper (1.1.11) unstable; urgency=low
+
+ * dh_installchangelogs: added -k flag, that will make it install a symlink
+ to the original name of the upstream changelog.
+
+ -- Joey Hess <joeyh@master.debian.org> Thu, 20 Aug 1998 15:40:40 -0700
+
debhelper (1.1.10) unstable; urgency=low
* It's come to my attention that a few packages use filename globbing in