Ver código fonte

Use proper name for .changes file when building source-only

Wichert Akkerman 26 anos atrás
pai
commit
8c22b210aa
2 arquivos alterados com 15 adições e 5 exclusões
  1. 5 0
      ChangeLog
  2. 10 5
      scripts/dpkg-buildpackage.sh

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+Thu Nov 23 15:48:53 CET 2000 Wichert Akkerman <wakkerma@debian.org>
+
+  * scripts/dpkg-buildpackage.sh: Name .changes file properly if
+    we are doing a source-only build
+
 Thu Nov  9 13:53:21 CET 2000 Wichert Akkerman <wakkerma@debian.org>
 
   * doc/Makefile.in: use internals.html/index.html as dependency target

+ 10 - 5
scripts/dpkg-buildpackage.sh

@@ -7,9 +7,11 @@ version="1.3.0"; # This line modified by Makefile
 progname="`basename \"$0\"`"
 usageversion () {
 	cat >&2 <<END
-Debian GNU/Linux dpkg-buildpackage $version.  Copyright (C) 1996
-Ian Jackson.  This is free software; see the GNU General Public Licence
-version 2 or later for copying conditions.  There is NO warranty.
+Debian GNU/Linux dpkg-buildpackage $version.  
+Copyright (C) 1996 Ian Jackson.
+Copyright (C) 2000 Wichert Akkerman
+This is free software; see the GNU General Public Licence version 2
+or later for copying conditions.  There is NO warranty.
 
 Usage: dpkg-buildpackage [options]
 Options: -r<gain-root-command>
@@ -131,8 +133,11 @@ if [ -n "$maint" ]; then maintainer="$maint";
 else mustsetvar maintainer "`dpkg-parsechangelog | sed -n 's/^Maintainer: //p'`" "source maintainer"; fi
 eval `dpkg-architecture -a${arch} -t${targetgnusystem} -s`
 archlist=`dpkg-architecture -a${targetarch} -t${targetgnusystem} -f 2> /dev/null`
-mustsetvar arch "`dpkg-architecture -a${targetarch} -t${targetgnusystem} -qDEB_HOST_ARCH`" "build architecture"
-
+if [ x$sourceonly = x ]; then
+	mustsetvar arch "`dpkg-architecture -a${targetarch} -t${targetgnusystem} -qDEB_HOST_ARCH`" "build architecture"
+else
+	arch=source
+fi
 sversion=`echo "$version" | perl -pe 's/^\d+://'`
 pv="${package}_${sversion}"
 pva="${package}_${sversion}${arch:+_${arch}}"