From eef77d3710f881aad843c62e5a4d0586e03ab229 Mon Sep 17 00:00:00 2001
From: Arch Librarian <arch@canonical.com>
Date: Mon, 20 Sep 2004 17:04:28 +0000
Subject: [PATCH] * Avoid clobbering configure.in if sed fails Author: mdz
 Date: 2003-12-24 22:55:30 GMT * Avoid clobbering configure.in if sed fails

---
 debian/changelog | 3 ++-
 debian/rules     | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9c1b03da2..907af1b9a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,8 +6,9 @@ apt (0.5.16) unstable; urgency=low
   * Add knetbsd to buildlib/ostable (Closes: #212344)
   * Don't suggest apt-get -f install to correct broken build-deps; broken
     installed packages are rarely the cause (Closes: #220858)
+  * Avoid clobbering configure.in if sed fails
 
- -- Matt Zimmerman <mdz@debian.org>  Wed, 24 Dec 2003 14:53:37 -0800
+ -- Matt Zimmerman <mdz@debian.org>  Wed, 24 Dec 2003 14:54:40 -0800
 
 apt (0.5.15) unstable; urgency=low
 
diff --git a/debian/rules b/debian/rules
index dd2c993ca..0ac423c92 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,7 @@
 # Made with the aid of dh_make, by Craig Small
 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
 # Some lines taken from debmake, by Christoph Lameter.
-# $Id: rules,v 1.61 2003/12/21 00:37:58 mdz Exp $
+# $Id: rules,v 1.62 2003/12/24 22:55:30 mdz Exp $
 
 # LD_LIBRARY_PATH=pwd/debian/apt/usr/lib dh_shlibdeps -papt
 # dpkg: /home/jgg/work/apt2/debian/apt/usr/lib/libapt-pkg.so.2.9 not found.
@@ -53,7 +53,7 @@ endif
 ifneq ($(APT_DEBVER),$(APT_CONFVER))
 .PHONY: configure.in
 configure.in:
-	sed -e 's/$(APT_CONFVER)/$(APT_DEBVER)/' $@ > $@.$$$$;mv $@.$$$$ $@
+	sed -e 's/$(APT_CONFVER)/$(APT_DEBVER)/' $@ > $@.$$$$ && mv $@.$$$$ $@
 else
 configure.in:
 endif
-- 
2.47.2