1 # Library functions for debhelper programs.
3 # Run a command, and display the command to stdout if verbose mode is on.
4 # All commands that edit debian/tmp should be ran via this function.
10 # Echo something if the verbose flag is on.
11 function verbose_echo() {
12 if [ "$DH_VERBOSE" ]; then
17 # Echo an error message and exit.
19 echo `basename $0`": $1" >&2
23 # Argument processing and global variable initialization is below.
25 # Get the package name and version from the changelog.
26 LINE=`head -1 debian/changelog`
27 PACKAGE=`expr "$LINE" : '\(.*\) (.*)'`
28 VERSION=`expr "$LINE" : '.* (\(.*\))'`
30 # Is this a native Debian package?
31 if ! expr "$VERSION" : '.*-' >/dev/null; then