]> git.saurik.com Git - apt.git/commitdiff
Add support to debian/rules to update config.sub and co...
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:59:46 +0000 (16:59 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:59:46 +0000 (16:59 +0000)
Author: doogie
Date: 2002-11-09 20:21:53 GMT
Add support to debian/rules to update config.sub and config.guess from
/usr/share/misc if they exist.

debian/changelog
debian/rules

index 0b47f16a61d78cd702e3d55b85df4e6526f60aaa..d03bce7e1cff6ce34fb9502ffed6bec1a2a5d52d 100644 (file)
@@ -53,6 +53,8 @@ apt (0.5.5) unstable; urgency=low
   * Fix segfault in FindAny when /i is used, and there is no default.
     Closes: #165891
   * Add s390x to archtable.  Closese: #160992.
+  * Update config.sub/config.guess in cvs, and add support to debian/rules
+    to update them from /usr/share/misc if they exist.  Closes: #155014
 
  -- Jason Gunthorpe <jgg@debian.org>  Sun, 15 Sep 2002 17:16:59 -0600
 
index e8a3363259b9ab2a12a1dba2c263fda474e05db6..6599a0d1dc7ec0196e30e50295d0e35d9b05dac8 100755 (executable)
@@ -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.40 2002/11/09 20:13:27 doogie Exp $
+# $Id: rules,v 1.41 2002/11/09 20:21:54 doogie 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.
@@ -100,6 +100,14 @@ build/configure-stamp: configure
        dh_testdir
        -mkdir build
        cp COPYING debian/copyright
+ifneq ($(wildcard /usr/share/misc/config.sub),)
+       cp -a /usr/share/misc/config.sub buildlib/config.sub
+       echo Updating buildlib/config.sub
+endif
+ifneq ($(wildcard /usr/share/misc/config.guess),)
+       cp -a /usr/share/misc/config.guess buildlib/config.guess
+       echo Updating buildlib/config.guess
+endif
        (cd build; ../configure $(confflags))
        touch $@