Your message dated Mon, 24 Mar 2008 22:32:03 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#472492: fixed in devscripts 2.10.20
has caused the Debian Bug report #472492,
regarding [new] dcmd: script to expand .changes/.dsc file lists
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
472492: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472492
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: devscripts
Version: 2.10.19
Severity: wishlist

Hello,

I'd like to propose my dcmd script for inclusion in devscripts.
For the motivations behind it, please see the following posts:

  http://blog.orebokech.com/2007/06/dscchanges-aware-scp.html
  http://blog.orebokech.com/2007/06/dcmd.html

I find it very convenient, and from the feedback I got I think other
maintainers may find it helpful.  AIUI devscripts only includes
Perl and shell scripts so I rewrote it in shell, avoiding the
python/python-debian dependency.

I'm attaching to this message:
- the script itself
- its man page
- a diff against devscripts SVN adding dcmd to the package

Thanks,
-- 
Romain Francoise <[EMAIL PROTECTED]>
http://people.debian.org/~rfrancoise/

#!/bin/sh
#
# dcmd: expand file lists of .dsc/.changes files in the command line
#
# Copyright (C) 2008 Romain Francoise <[EMAIL PROTECTED]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA

# Usage:
#
# dcmd replaces any reference to a .dsc or .changes file in the command
# line with the list of files in its 'Files' section, plus the
# .dsc/.changes file itself.
#
# $ dcmd sha1sum rcs_5.7-23_amd64.changes
# f61254e2b61e483c0de2fc163321399bbbeb43f1  rcs_5.7-23.dsc
# 7a2b283b4c505d8272a756b230486a9232376771  rcs_5.7-23.diff.gz
# e3bac970a57a6b0b41c28c615f2919c931a6cb68  rcs_5.7-23_amd64.deb
# c531310b18773d943249cfaa8b539a9b6e14b8f4  rcs_5.7-23_amd64.changes
# $

usage()
{
    printf "Usage: %s [command] [dsc or changes file] [...]\n" `basename $0`
}

endswith()
{
    [ $(basename "$1" $2)$2 = $(basename "$1") ]
}

# Instead of parsing the file completely as the previous Python
# implementation did (using python-debian), let's just select lines
# that look like they might be part of the file list.
RE="^ [0-9a-f]{32} [0-9]+ ([a-z]+ [a-z]+ )?(.*)$"

maybe_expand()
{
    local dir
    if [ -f "$1" ] && (endswith "$1" .changes || endswith "$1" .dsc); then
	dir=$(dirname "$1")
	sed -rn "s,$RE,$dir/\2,p" <"$1" | sed 's,^\./,,'
    fi
}

if [ $# -lt 2 ]; then
    usage
    exit 1
fi

cmd=$1
shift

args=""
for arg in "$@"; do
    args="$args $(maybe_expand "$arg") $arg"
done

exec $cmd $args
.TH DCMD 1 "Debian Utilities" "DEBIAN" \" -*- nroff -*-
.SH NAME
dcmd \- expand file lists of .dsc/.changes files in the command line
.SH SYNOPSIS
\fBdcmd\fR [command] [\fIchanges-file\fR|\fIdsc-file\fR] [...]
.SH DESCRIPTION
\fBdcmd\fR replaces any reference to a .dsc or .changes file in the
command line with the list of files in its 'Files' section, plus the
file itself.  It allows easy manipulation of all the files involved in
an upload (for changes files) or a source package (for dsc files).
.SH "EXAMPLES"
Copy the result of a build to another machine:

.nf
$ dcmd scp rcs_5.7-23_amd64.changes elegiac:/tmp
rcs_5.7-23.dsc                  100%  490     0.5KB/s   00:00
rcs_5.7-23.diff.gz              100%   12KB  11.7KB/s   00:00
rcs_5.7-23_amd64.deb            100%  363KB 362.7KB/s   00:00
rcs_5.7-23_amd64.changes        100% 1095     1.1KB/s   00:00
$
.fi

Check the contents of a source package:

.nf
$ dcmd md5sum rcs_5.7-23.dsc 
8fd09ea9654cda128f8d5c337d3b8de7  rcs_5.7.orig.tar.gz
f0ceeae96603e823eacba6721a30b5c7  rcs_5.7-23.diff.gz
5241db1e231b1f43ae5514b63d2523f8  rcs_5.7-23.dsc
$
.fi

.SH "SEE ALSO"
.BR dpkg-source (1),
.BR dpkg-genchanges (1).
.SH AUTHOR
This program was written by Romain Francoise <[EMAIL PROTECTED]> and
is released under the GPL, version 2 or later.
Index: debian/control
===================================================================
--- debian/control	(revision 1192)
+++ debian/control	(working copy)
@@ -47,6 +47,7 @@
     dupload | dput, ssh]
   - cvs-debuild: run cvs-buildpackage using debuild (see below) as the
     package building program [cvs-buildpackage, fakeroot, lintian, gnupg]
+  - dcmd: expand file lists of .dsc/.changes files in the command line
   - dd-list: given a list of packages, pretty-print it ordered by maintainer
   - debc: display the contents of just-built .debs
   - debchange/dch: automagically add entries to debian/changelog files
Index: po4a/devscripts-po4a.conf
===================================================================
--- po4a/devscripts-po4a.conf	(revision 1192)
+++ po4a/devscripts-po4a.conf	(working copy)
@@ -29,6 +29,8 @@
 	fr:fr/cvs-debrelease.fr.1 add_fr:add_fr/translator_man.add
 [type:man] ../scripts/cvs-debuild.1 \
 	fr:fr/cvs-debuild.fr.1 add_fr:add_fr/translator_man.add
+[type:man] ../scripts/dcmd.1 \
+	fr:fr/dcmd.fr.1 add_fr:add_fr/translator_man.add
 [type:man] ../scripts/dd-list.1 \
 	fr:fr/dd-list.fr.1 add_fr:add_fr/translator_man.add
 [type:man] ../scripts/debc.1 \
Index: README
===================================================================
--- README	(revision 1192)
+++ README	(working copy)
@@ -48,6 +48,8 @@
   wrapper for cvs-buildpackage to use debuild as its package building
   program.
 
+- dcmd: Expand file lists of .dsc/.changes files in the command line.
+
 - dd-list: Given a list of packages, pretty-print it ordered by maintainer.
 
 - debc: List contents of current package.  Do this after a successful
Index: conf.default.in
===================================================================
--- conf.default.in	(revision 1192)
+++ conf.default.in	(working copy)
@@ -125,6 +125,10 @@
 # 
 # No variables currently
 
+##### dcmd
+# 
+# No variables currently
+
 ##### debc
 # 
 # debc recognises the DEBRELEASE_DEBS_DIR variable; see debrelease

--- End Message ---
--- Begin Message ---
Source: devscripts
Source-Version: 2.10.20

We believe that the bug you reported is fixed in the latest version of
devscripts, which is due to be installed in the Debian FTP archive:

devscripts_2.10.20.dsc
  to pool/main/d/devscripts/devscripts_2.10.20.dsc
devscripts_2.10.20.tar.gz
  to pool/main/d/devscripts/devscripts_2.10.20.tar.gz
devscripts_2.10.20_amd64.deb
  to pool/main/d/devscripts/devscripts_2.10.20_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adam D. Barratt <[EMAIL PROTECTED]> (supplier of updated devscripts package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 24 Mar 2008 22:14:22 +0000
Source: devscripts
Binary: devscripts
Architecture: source amd64
Version: 2.10.20
Distribution: unstable
Urgency: low
Maintainer: Devscripts Devel Team <[email protected]>
Changed-By: Adam D. Barratt <[EMAIL PROTECTED]>
Description: 
 devscripts - scripts to make the life of a Debian Package maintainer easier
Closes: 262253 452930 459294 460719 467066 469242 471282 471304 471503 471672 
471723 472492
Changes: 
 devscripts (2.10.20) unstable; urgency=low
 .
   * bts:
     + Only append a single ellipsis to the mail subject once it becomes
       too long, rather than for each extra command (Closes: #471304)
     + Make --no-action and --(force-)interactive work if neither DEBEMAIL
       nor EMAIL are set (Closes: #467066)
     + Add --cc-addr to --help output
   * checkbashisms:
     + Make --version actually produce version information
     + Fix explanation of VAR+=foo
     + Fix an error in the "shell script wrapper" detection
     + Enhance the "invalid function name" check to allow a leading bracket
       before the function name
     + Don't treat '' at the beginning of a line as the start of a quoted block
     + Allow a heredoc marker to begin with a backslash
     + Enhance quoted block detection to handle escaped quotes better
     + Enhance "shell script wrapper" detection to catch more ways of
       disguising a non shell script as one
     + If more than one issue was found within a single line, output each
       rather than just the first
   * dcmd: New script from Romain Francoise to run a given command replacing
     the name of a .changes or .dsc file with each of the files referenced
     therein (Closes: #472492)
   * debcheckout: Allow specific files from the repository to be retrieved
     rather than checking out the repository (Closes: #469242)
   * debcommit:
     + Make the change to --release's behaviour introduced in the last
       upload optional. If -R / --release-use-changelog is used then
       the changelog will be checked for uncommitted changes when determining
       the commit message. The default is not to do so and use the message
       passed with --message (if any) or "releasing version X.Y.Z" as before.
       (Closes: #471723)
     + When creating summary lines for git and hg, ignore any subchanges
       (i.e. lines indented by more than two spaces and starting with *, +
       or -)
     + Add documentation to the manpage of the current VCS-specific features
     + Make --strip-message also strip leading spaces from continuation lines
     + Strip single change commit messages by default
   * debdiff:
     + Escape package names when normalising path names (Closes: #471282)
     + Make tarball-in-tarball support more intelligent. If a sub-tarball
       named foo.tar.gz unpacks to a directory named foo, the directory is
       renamed to =unpacked-tarN= so that the directory names match across
       the unpacked packages (Closes: #459294)
   * debuild:
     + Add a --prepend-path option allowing $PATH to have directories added
       to it once it has been sanitised, for example to add /usr/lib/ccache.
       Based on a patch by Matt T. Proud (Closes: #460719)
     + Add a --username option to allow debrsign to be used instead of debsign
       (Closes: #262253)
   * dget: Support /etc/apt/sources.list.d (Closes: #471672)
   * uscan:
     + Correctly handle an explicit upstream-version of 0 (Closes: #471503)
     + Add "watch" to the manpage's summary line (Closes: #452930)
   * debian/copyright: Explicitly indicate that diff2patches is GPL >= 3
     rather than the package's standard >= 2.
Files: 
 ac7f827309ad9844c921e91cc2a88f47 1224 devel optional devscripts_2.10.20.dsc
 77476b73ccc992f3028bae34f6a4f03a 536743 devel optional 
devscripts_2.10.20.tar.gz
 6813ed1037ddb4a2a58e6cb4e1cf390a 465688 devel optional 
devscripts_2.10.20_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH6CjiokcE1TReOoURAtOeAKCE7Lmje4g8joJJG/nqqu0oKnNHhgCfaXRA
Zdnts92qtd6ZoKIZMxt+wBE=
=nCFi
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to