--- mrename-1.2.orig/debian/patches/10_option_p.dpatch +++ mrename-1.2/debian/patches/10_option_p.dpatch @@ -0,0 +1,30 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10_option_p.dpatch by Kevin Coyner +## +## DP: The -p option does not exist and should actually be -m. + +@DPATCH@ +diff -urNad mrename-1.2~/README mrename-1.2/README +--- mrename-1.2~/README 2007-08-25 19:57:24.000000000 -0400 ++++ mrename-1.2/README 2007-08-25 20:01:06.000000000 -0400 +@@ -23,7 +23,7 @@ + USAGE: + ------ + +- mrename 'pattern' prefix -c|-p ++ mrename 'pattern' prefix -c|-m + + - 'pattern' is the pattern to search files to rename + (quoted to avoid that bash resolve it) +diff -urNad mrename-1.2~/mrename mrename-1.2/mrename +--- mrename-1.2~/mrename 2007-08-25 19:57:24.000000000 -0400 ++++ mrename-1.2/mrename 2007-08-25 20:01:25.000000000 -0400 +@@ -33,7 +33,7 @@ + Usage: + ------ + +- mrename 'pattern' prefix -c|-p ++ mrename 'pattern' prefix -c|-m + + - 'pattern' is the pattern to search files to rename + (quoted to avoid that bash resolve it) --- mrename-1.2.orig/debian/patches/01_space_in_filenames_handling.dpatch +++ mrename-1.2/debian/patches/01_space_in_filenames_handling.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_space_in_filenames_handling.dpatch by Tommaso Moroni +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad mrename-1.2~/mcpmv mrename-1.2/mcpmv +--- mrename-1.2~/mcpmv 2000-03-22 16:21:24.000000000 +0100 ++++ mrename-1.2/mcpmv 2005-11-12 09:48:50.000000000 +0100 +@@ -27,7 +27,7 @@ + # This command rename with format + # copying files (that is using cp command) + +-cp $mfile $2$nnumber$mfile ++cp "$mfile" "$2$nnumber$mfile" + + # If you want to rename with format + # uncomment the line below +@@ -46,7 +46,7 @@ + # This command rename with format + # moving files (that is using mv command) + +-mv $mfile $2$nnumber$mfile ++mv "$mfile" "$2$nnumber$mfile" + + # If you want to rename with format + # uncomment the line below --- mrename-1.2.orig/debian/patches/00list +++ mrename-1.2/debian/patches/00list @@ -0,0 +1,3 @@ +01_space_in_filenames_handling +10_option_p +20_shebang_patch --- mrename-1.2.orig/debian/patches/20_shebang_patch.dpatch +++ mrename-1.2/debian/patches/20_shebang_patch.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 20_shebang_patch.dpatch by Kevin Coyner +## +## DP: Thanks to Stephan Hermann for this patch. + +@DPATCH@ +diff -urNad mrename-1.2~/mcpmv mrename-1.2/mcpmv +--- mrename-1.2~/mcpmv 2007-08-25 19:55:21.000000000 -0400 ++++ mrename-1.2/mcpmv 2007-08-25 19:55:31.000000000 -0400 +@@ -1,4 +1,4 @@ +-#!/bin/sh ++#!/bin/bash + # + # MASS RENAME V 1.2 + # (c) 2000 Giancarlo Erra +diff -urNad mrename-1.2~/mrename mrename-1.2/mrename +--- mrename-1.2~/mrename 2000-03-22 10:21:27.000000000 -0500 ++++ mrename-1.2/mrename 2007-08-25 19:55:41.000000000 -0400 +@@ -1,4 +1,4 @@ +-#!/bin/sh ++#!/bin/bash + # + # MASS RENAME V 1.2 + # (c) 2000 Giancarlo Erra --- mrename-1.2.orig/debian/changelog +++ mrename-1.2/debian/changelog @@ -0,0 +1,100 @@ +mrename (1.2-12) unstable; urgency=low + + * New maintainer. Closes: #439532. + * Rewrite of debian/copyright. + * debian/control: + + Bumped debhelper to 5. + + Added homepage to description. + + Added comma to Depends: line where needed + * Updated debian/watch file. + * Bumped debian/compat to 5. + * Added patch for shebang line from Ubuntu. Thanks Stephan Hermann. + * Added patch to fix incorrect use of -p option. + * Removed some comments/whitespace from debian/rules. + + -- Kevin Coyner Sat, 25 Aug 2007 19:35:33 -0400 + +mrename (1.2-11) unstable; urgency=low + + * debian/control: put dpatch and debhelper in Build-Depends instead of + Build-Depends-Indep, since they are required to run the clean target of + debian/rules. + * debian/control: Standards-Version bumped to 3.7.2 (no changes required) + + -- Tommaso Moroni Sat, 17 Jun 2006 07:22:35 +0200 + +mrename (1.2-10) unstable; urgency=low + + * debian/control: removed spaces between ${shlibs:Depends} and + ${misc:Depends}, so that resulting Depends line does not contain more than + one whitespace. (Closes: #353311) + + -- Tommaso Moroni Sun, 19 Feb 2006 08:56:00 +0100 + +mrename (1.2-9) unstable; urgency=low + + * debian/control: Standards-Version bumped to 3.6.2 (no changes required) + * Added a patch in debian/patches to handle spaces in filenames + + -- Tommaso Moroni Sat, 12 Nov 2005 09:43:36 +0100 + +mrename (1.2-8) unstable; urgency=low + + * debian/watch now uses format version 2. + + -- Tommaso Moroni Thu, 29 Jul 2004 13:44:16 +0200 + +mrename (1.2-7) unstable; urgency=low + + * Package adopted. (Closes: #206856) + * DH_COMPAT set to 4 using debian/compat; ${misc:Depends} used in debian/control. + * Standard-Version updated to 3.6.1.0 (no changes needed) + * Build-Depends changed into Build-Depends-Indep. + * Fixed minor error in debian/copyright. + * Using dh_installman instead of dh_installmanpages. + + -- Tommaso Moroni Wed, 27 Aug 2003 19:46:04 +0200 + +mrename (1.2-6) unstable; urgency=low + + * Changed maintainer to Harry Henry Gebel (closes: #100244) + * Updated rules file to debhelper version 3 + * Changed Architecture from 'any' to 'all' + + -- Harry Henry Gebel Mon, 11 Jun 2001 02:30:38 -0400 + +mrename (1.2-5) unstable; urgency=low + + * Added Build-Depends in control. + * Corrected typo in copyright file. + + -- Dr. Guenter Bechly Thu, 29 Mar 2001 12:55:39 +0200 + +mrename (1.2-4) unstable; urgency=low + + * Changed section from admin to utils to satisfy override. + + -- Dr. Guenter Bechly Wed, 14 Feb 2001 21:51:13 +0100 + +mrename (1.2-3) unstable; urgency=low + + * Deleted the useless menu entry; closes: #85880 + + -- Dr. Guenter Bechly Wed, 14 Feb 2001 19:03:20 +0100 + +mrename (1.2-2) unstable; urgency=low + + * Deleted the duplicate package description in control-file + (closes: #75453) + + -- Dr. Guenter Bechly Sat, 28 Oct 2000 12:43:42 +0200 + +mrename (1.2-1) unstable; urgency=low + + * Initial Release. + * Beware! This is one of my first Debian packages ;-) + * Added a Makefile. + * Added a manpage for Debian. + + -- Dr. Guenter Bechly Sun, 22 Oct 2000 16:38:35 +0200 + --- mrename-1.2.orig/debian/compat +++ mrename-1.2/debian/compat @@ -0,0 +1 @@ +5 --- mrename-1.2.orig/debian/control +++ mrename-1.2/debian/control @@ -0,0 +1,19 @@ +Source: mrename +Section: utils +Priority: optional +Maintainer: Kevin Coyner +Build-Depends: debhelper (>= 5), dpatch +Standards-Version: 3.7.2 + +Package: mrename +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: A tool for easy and automatic renaming of many files + Mass Rename is a simple pair of shell scripts which make it easier to + move, rename, or copy multiple files at once. It is intended mainly as an + automatic and simple way to rename multiple files with a customizable + prefix and a progressive number. It is also possible to modify the rename + format simply by editing one of the scripts. It is easy, complete, and + efficient, and was written only in sh code. + . + Homepage: http://alfalinux.sourceforge.net/mrename.php3 --- mrename-1.2.orig/debian/copyright +++ mrename-1.2/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Dr. Guenter Bechly on +Sun, 22 Oct 2000 16:38:35 +0200. + +The current maintainer is Kevin Coyner . + +It was originally downloaded from +ftp://alfalinux.sourceforge.net/pub/alfalinux/mrename-1.2.tar.gz + +It can now be downloaded from http://alfalinux.sourceforge.net/mrename.php3. + +Upstream Author: Giancarlo Erra + +Copyright: (c) 2000 Giancarlo Erra + + 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. + + 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 with + the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; + if not, write to the Free Software Foundation, Inc., 51 Franklin Street, + Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General Public +License, version 2, can be found in /usr/share/common-licenses/GPL-2. + +The Debian packaging is (C) 2007, Kevin Coyner and +is licensed under the GPL, see above. --- mrename-1.2.orig/debian/watch +++ mrename-1.2/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://alfalinux.sourceforge.net/mrename.php3 \ + mrename-([\d\.]*).(?:tgz|tar.gz|tar.bz2) --- mrename-1.2.orig/debian/dirs +++ mrename-1.2/debian/dirs @@ -0,0 +1 @@ +usr/bin --- mrename-1.2.orig/debian/docs +++ mrename-1.2/debian/docs @@ -0,0 +1 @@ +README --- mrename-1.2.orig/debian/rules +++ mrename-1.2/debian/rules @@ -0,0 +1,61 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +configure: configure-stamp +configure-stamp: patch + dh_testdir + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + # Add here commands to compile the package. + touch build-stamp + +clean: clean-patched unpatch + +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + # Add here commands to clean up after the build process. + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) install DESTDIR=`pwd`/debian/mrename + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installman debian/mcpmv.1 debian/mrename.1 + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- mrename-1.2.orig/debian/mcpmv.1 +++ mrename-1.2/debian/mcpmv.1 @@ -0,0 +1,57 @@ +.TH MRENAME 1 "October 22, 2000" +.SH NAME +mrename \- program to rename files +.SH SYNOPSIS +.B mrename +.RI 'pattern' +.RI prefix +.RI [option] +.SH DESCRIPTION +This manual page documents briefly the +.B mrename +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +\fBmrename\fP is a tool for easy and automatic renaming of many files. +The \fB'pattern'\fP is the pattern to search files to rename (quoted to avoid +that bash resolve it), and \fBprefix\fP is the prefix that will be added +to the name of each file. The two alternative \fBoptions\fP for copying or +moving files in the new name are explained below. +All parameters are needed, and you have to stay and launch the script +in the same directory of the files to be renamed. The program should be able +to write in this directory. +.SH OPTIONS +There are only the following three options. +.TP +.B \-c +The option -c will copy each file with the new filename. +.TP +.B \-m +The option -m will move each file in the new filename. +.TP +.B \-h +Display help. +.SH EXAMPLE +If you have a directory with two jpeg images prof.jpg and forp.jpg +and you want to add them a prefix like item0, item1 etc.. +(that is item0prof.jpg, item1forp.jpg etc..) do this: + + cd /path/to/the/images + mrename '*.jpg' item -c + +to copy each matching file into another with the new name + + mrename '*.jpg' item -m + +to rename each file without keeping a copy with the previous name +.SH Word-Wide-Web: +http://alfalinux.sourceforge.net/mrename.php3 +.SH AUTHOR: +.I Giancarlo -rofus- Erra +.br +e-mail: rofus@mindless.com +.PP +This manual page was written by Dr. Guenter Bechly , +for the Debian GNU/Linux system (but may be used by others). It is +distributed under the GPL just like mrename itself. --- mrename-1.2.orig/debian/mrename.1 +++ mrename-1.2/debian/mrename.1 @@ -0,0 +1,57 @@ +.TH MRENAME 1 "October 22, 2000" +.SH NAME +mrename \- program to rename files +.SH SYNOPSIS +.B mrename +.RI 'pattern' +.RI prefix +.RI [option] +.SH DESCRIPTION +This manual page documents briefly the +.B mrename +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +\fBmrename\fP is a tool for easy and automatic renaming of many files. +The \fB'pattern'\fP is the pattern to search files to rename (quoted to avoid +that bash resolve it), and \fBprefix\fP is the prefix that will be added +to the name of each file. The two alternative \fBoptions\fP for copying or +moving files in the new name are explained below. +All parameters are needed, and you have to stay and launch the script +in the same directory of the files to be renamed. The program should be able +to write in this directory. +.SH OPTIONS +There are only the following three options. +.TP +.B \-c +The option -c will copy each file with the new filename. +.TP +.B \-m +The option -m will move each file in the new filename. +.TP +.B \-h +Display help. +.SH EXAMPLE +If you have a directory with two jpeg images prof.jpg and forp.jpg +and you want to add them a prefix like item0, item1 etc.. +(that is item0prof.jpg, item1forp.jpg etc..) do this: + + cd /path/to/the/images + mrename '*.jpg' item -c + +to copy each matching file into another with the new name + + mrename '*.jpg' item -m + +to rename each file without keeping a copy with the previous name +.SH Word-Wide-Web: +http://alfalinux.sourceforge.net/mrename.php3 +.SH AUTHOR: +.I Giancarlo -rofus- Erra +.br +e-mail: rofus@mindless.com +.PP +This manual page was written by Dr. Guenter Bechly , +for the Debian GNU/Linux system (but may be used by others). It is +distributed under the GPL just like mrename itself. --- mrename-1.2.orig/debian/README.Debian +++ mrename-1.2/debian/README.Debian @@ -0,0 +1,6 @@ +mrename for Debian +---------------------- + +I added a Makefile (adapted from saytime) and a manpage for debianization. + + -- Dr. Guenter Bechly , Sun, 22 Oct 2000 16:38:35 +0200 --- mrename-1.2.orig/Makefile +++ mrename-1.2/Makefile @@ -0,0 +1,9 @@ +# Makefile adapted from saytime and added for Debian by Dr. Guenter Bechly + +DESTDIR = +BINDIR = $(DESTDIR)/usr/bin + +install: + install mcpmv $(BINDIR) + install mrename $(BINDIR) +