#!/bin/sh -e
## 000_print_debian_version.dpatch
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Description: Identify this version of binutils as being from Debian.
## DP: Author: Chris Chimelis <chris@debian.org>
## DP: Upstream status: N/A
## DP: Date: ??

if [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"

case "$1" in
       -patch) patch $patch_opts -p1 < $0;;
       -unpatch) patch $patch_opts -p1 -R < $0;;
        *)
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
                exit 1;;
esac

exit 0

@DPATCH@
diff -urNad /home/james/debian/packages/binutils/binutils-2.14.90.0.6/bfd/configure binutils-2.14.90.0.6/bfd/configure
--- /home/james/debian/packages/binutils/binutils-2.14.90.0.6/bfd/configure	2003-08-21 16:28:47.000000000 +0100
+++ binutils-2.14.90.0.6/bfd/configure	2003-09-10 22:29:48.000000000 +0100
@@ -1008,7 +1008,7 @@
 bfd_version_string="\"${VERSION}\""
 if test x${is_release} = x; then
   bfd_version_date=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
-  bfd_version_string="\"${VERSION} ${bfd_version_date}\""
+  bfd_version_string="\"${VERSION} ${bfd_version_date} Debian GNU/Linux\""
 fi
 
 
