Package: devscripts
Version: 2.10.69+squeeze1
Severity: wishlist
Tags: patch
Hi,
Please consider adding a -d option to mergechanges to allow deleting the
input files if output is successfully created. This is especially useful in
conjunction with -f when, say, repopulating a new archive from existing
changes files...
Mark
-- Package-specific info:
--- /etc/devscripts.conf ---
--- ~/.devscripts ---
DEBSIGN_KEYID=15B0FD82
DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i'(?:^|/).*~$|(?:^|/)\..*\.swp|DEADJOE|.gitignore|(?:/CVS|/RCS|/\.svn|/\.deps|/\.hg|\.git|/\.hgtags)(?:$|/)'
-ICVS -I.svn -I.hg -I.git"
-- System Information:
Debian Release: 6.0.2
APT prefers stable
APT policy: (990, 'stable'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages devscripts depends on:
ii dpkg-dev 1.16.0.3 Debian package development tools
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii perl 5.10.1-17squeeze1 Larry Wall's Practical Extraction
Versions of packages devscripts recommends:
ii at 3.1.12-1 Delayed job execution and batch pr
ii bzr 2.1.2-1 easy to use distributed version co
ii chromium-br 6.0.472.63~r59945-5+squeeze5 Chromium browser
ii curl 7.21.0-1 Get a file from an HTTP, HTTPS or
ii cvs 1:1.12.13-12 Concurrent Versions System
ii dctrl-tools 2.14.5 Command-line tools to process Debi
ii debian-keyr 2010.12.29 GnuPG keys of Debian Developers
ii dput 0.9.6.1 Debian package upload tool
ii elinks [www 0.12~pre5-2 advanced text-mode WWW browser
ii epiphany-br 2.30.6-1 Intuitive GNOME web browser
ii equivs 2.0.8 Circumvent Debian package dependen
ii fakeroot 1.14.4-1 Gives a fake root environment
ii git [git-co 1:1.7.2.5-2 fast, scalable, distributed revisi
ii git-core 1:1.7.2.5-2 fast, scalable, distributed revisi
ii gnupg 1.4.10-4 GNU privacy guard - a free PGP rep
ii heirloom-ma 12.4-2 feature-rich BSD mail(1)
ii iceweasel [ 3.5.16-6 Web browser based on Firefox
ii libauthen-s 2.1500-1 Authen::SASL - SASL Authentication
ii libcrypt-ss 0.57-2 Support for https protocol in LWP
ii libjson-per 2.21-1 Perl module to parse and convert t
ii libparse-de 2.005-2 Easy OO parsing of Debian control-
ii libsoap-lit 0.712-2 Perl implementation of a SOAP clie
ii libterm-siz 0.2-4+b1 Perl extension for retrieving term
ii libtimedate 1.2000-1 collection of modules to manipulat
ii liburi-perl 1.54-2 module to manipulate and access UR
ii libwww-perl 5.836-1 Perl HTTP/WWW client/server librar
ii libyaml-syc 1.12-1 Perl module providing a fast, ligh
ii lintian 2.5.1~bpo60+1 Debian package checker
ii lsb-release 3.2-23.2squeeze1 Linux Standard Base version report
ii lynx-cur [w 2.8.8dev.5-1 Text-mode WWW Browser with NLS sup
ii lzma 4.43-14 Compression method of 7z format in
ii man-db 2.5.7-8 on-line manual pager
ii openssh-cli 1:5.5p1-6 secure shell (SSH) client, for sec
ii patch 2.6-2 Apply a diff file to an original
ii patchutils 0.3.1-2 Utilities to work with patches
ii sensible-ut 0.0.4 Utilities for sensible alternative
ii strace 4.5.20-2 A system call tracer
ii subversion 1.6.12dfsg-4 Advanced version control system
ii unzip 6.0-4 De-archiver for .zip files
ii wdiff 0.6.3-1 Compares two files word by word
ii wget 1.12-2.1 retrieves files from the web
ii xz-utils 5.0.0-2 XZ-format compression utilities
Versions of packages devscripts suggests:
ii build-essential 11.5 Informational list of build-essent
pn cvs-buildpackage <none> (no description available)
pn devscripts-el <none> (no description available)
pn gnuplot <none> (no description available)
pn libfile-desktopentry-p <none> (no description available)
pn libnet-smtp-ssl-perl <none> (no description available)
ii mutt 1.5.20-9+squeeze1 text-based mailreader supporting M
pn svn-buildpackage <none> (no description available)
pn w3m <none> (no description available)
-- no debconf information
--- mergechanges.sh.orig 2011-09-01 22:29:39.000000000 +0100
+++ mergechanges.sh 2011-09-01 22:31:17.000000000 +0100
@@ -43,6 +43,7 @@
# Commandline parsing
FILE=0
+DELETE=0
while [ $# -gt 0 ]; do
case "$1" in
@@ -54,6 +55,10 @@
version
exit 0
;;
+ -d)
+ DELETE=1
+ shift
+ ;;
-f)
FILE=1
shift
@@ -209,4 +214,9 @@
eval "echo 'Files: ' ${REDIR2}"
eval "echo '${FILES}' ${REDIR2}"
+# If we got this far and the DELETE is set, we should delete the input files
+if test ${DELETE} = 1; then
+ rm "$@"
+fi
+
exit 0
--- mergechanges.1.orig 2011-09-01 22:29:49.000000000 +0100
+++ mergechanges.1 2011-09-01 22:30:30.000000000 +0100
@@ -2,7 +2,7 @@
.SH NAME
mergechanges \- merge multiple changes files
.SH SYNOPSIS
-\fBmergechanges\fR [\fB\-f\fR] \fIfile1 file2\fR [\fIfile\fR...]
+\fBmergechanges\fR [\fB\-d\fR] [\fB\-f\fR] \fIfile1 file2\fR [\fIfile\fR...]
.SH DESCRIPTION
\fBmergechanges\fR merges two or more \fI.changes\fR files, merging
the Architecture, Description and Files (and Checksums-*, if present)
@@ -14,7 +14,9 @@
The output is normally written to \fIstdout\fR. If the \fB\-f\fR
option is given, the output is written to
\fIpackage\fR_\fIversion\fR_multi.changes instead, in the same
-directory as the first changes file listed.
+directory as the first changes file listed. If the \fB\-d\fR
+option is given, if the output is generated sucessfully, the
+input files will be deleted.
.SH AUTHOR
Gergely Nagy <[email protected]>,
modifications by Julian Gilbey <[email protected]> and