[DebianBRTeam-commits] r619 - in /packages/re-name/trunk/debian: README.source changelog compat control copyright dirs docs patches/ patches/Makefile.patch patches/manpage.patch patches/series rules source/ source/format watch

eriberto-guest at users.alioth.debian.org eriberto-guest at users.alioth.debian.org
Tue Apr 23 20:20:01 UTC 2013


Author: eriberto-guest
Date: Tue Apr 23 20:20:01 2013
New Revision: 619

URL: http://svn.debian.org/wsvn/?sc=1&rev=619
Log:
Initial upload.

Added:
    packages/re-name/trunk/debian/README.source
    packages/re-name/trunk/debian/changelog
    packages/re-name/trunk/debian/compat
    packages/re-name/trunk/debian/control
    packages/re-name/trunk/debian/copyright
    packages/re-name/trunk/debian/dirs
    packages/re-name/trunk/debian/docs
    packages/re-name/trunk/debian/patches/
    packages/re-name/trunk/debian/patches/Makefile.patch
    packages/re-name/trunk/debian/patches/manpage.patch
    packages/re-name/trunk/debian/patches/series
    packages/re-name/trunk/debian/rules   (with props)
    packages/re-name/trunk/debian/source/
    packages/re-name/trunk/debian/source/format
    packages/re-name/trunk/debian/watch

Added: packages/re-name/trunk/debian/README.source
URL: http://svn.debian.org/wsvn/packages/re-name/trunk/debian/README.source?rev=619&op=file
==============================================================================
--- packages/re-name/trunk/debian/README.source (added)
+++ packages/re-name/trunk/debian/README.source Tue Apr 23 20:20:01 2013
@@ -1,0 +1,10 @@
+re-name for Debian
+------------------
+
+The original upstream name is rename. It is a generical name and was modified
+to re-name to be introduced in Debian. The original package produces a binary
+called renamex. It was modified too.
+
+The re particle (from re-name) is a pun for regular expression.
+
+ -- Joao Eriberto Mota Filho <eriberto at eriberto.pro.br>  Tue, 23 Apr 2013 08:33:19 -0300

Added: packages/re-name/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/packages/re-name/trunk/debian/changelog?rev=619&op=file
==============================================================================
--- packages/re-name/trunk/debian/changelog (added)
+++ packages/re-name/trunk/debian/changelog Tue Apr 23 20:20:01 2013
@@ -1,0 +1,5 @@
+re-name (1.99.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #706014)
+
+ -- Joao Eriberto Mota Filho <eriberto at eriberto.pro.br>  Tue, 23 Apr 2013 08:33:19 -0300

Added: packages/re-name/trunk/debian/compat
URL: http://svn.debian.org/wsvn/packages/re-name/trunk/debian/compat?rev=619&op=file
==============================================================================
--- packages/re-name/trunk/debian/compat (added)
+++ packages/re-name/trunk/debian/compat Tue Apr 23 20:20:01 2013
@@ -1,0 +1,1 @@
+9

Added: packages/re-name/trunk/debian/control
URL: http://svn.debian.org/wsvn/packages/re-name/trunk/debian/control?rev=619&op=file
==============================================================================
--- packages/re-name/trunk/debian/control (added)
+++ packages/re-name/trunk/debian/control Tue Apr 23 20:20:01 2013
@@ -1,0 +1,33 @@
+Source: re-name
+Section: utils
+Priority: optional
+Maintainer: Joao Eriberto Mota Filho <eriberto at eriberto.pro.br>
+Build-Depends: debhelper (>= 9.0.0)
+Standards-Version: 3.9.4
+Homepage: http://rename.sf.net
+Vcs-Browser: http://anonscm.debian.org/viewvc/debian-br-team/packages/re-name
+Vcs-Svn: svn://svn.debian.org/svn/debian-br-team/packages/re-name
+
+Package: re-name
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: mass rename tool using regular expression
+ Re-name (regular expression {re}name) is a tool to rename files. It
+ can change, lowercase and uppercase a batch of files, or modify their
+ ownership. It is a small and quick tool  written in C so it is quicker
+ than most rename tools written in shell script.
+ .
+ Rename is powered by the extended regular expression for searching and
+ substituting string patterns in the file names.
+ .
+ The main features of rename are:
+ .
+   * Substitue strings in filenames.
+   * Search and substitue strings in filenames by POSIX
+     regular expressions.
+   * Uppercase or lowercase filenames.
+   * Support batch mode rename.
+   * Recursively processing directories and subdirectories.
+   * Support to read the filename list from a file.
+   * Change ownership of files.
+   * Safe mode: test before you go.

Added: packages/re-name/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/packages/re-name/trunk/debian/copyright?rev=619&op=file
==============================================================================
--- packages/re-name/trunk/debian/copyright (added)
+++ packages/re-name/trunk/debian/copyright Tue Apr 23 20:20:01 2013
@@ -1,0 +1,53 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: rename
+Source: http://rename.sf.net
+
+Files: *
+Copyright: 2001-2011 Andy Xuming <xuming at users.sourceforge.net>
+License: GPL-3.0+
+
+Files: regex.c
+Copyright: 1993-1995 Free Software Foundation, Inc.
+License: GPL-2.0+
+
+Files: regex.h
+Copyright: 1985, 1989-1993, 1995 Free Software Foundation, Inc.
+License: GPL-2.0+
+
+Files: debian/*
+Copyright: 2013 Joao Eriberto Mota Filho <eriberto at eriberto.pro.br>
+License: GPL-3.0+
+
+License: GPL-2.0+
+ This package 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 package 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, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+License: GPL-3.0+
+ 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 3 of the License, or
+ (at your option) any later version.
+ .
+ This package 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, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".

Added: packages/re-name/trunk/debian/dirs
URL: http://svn.debian.org/wsvn/packages/re-name/trunk/debian/dirs?rev=619&op=file
==============================================================================
--- packages/re-name/trunk/debian/dirs (added)
+++ packages/re-name/trunk/debian/dirs Tue Apr 23 20:20:01 2013
@@ -1,0 +1,2 @@
+usr/bin
+usr/share/man/man1

Added: packages/re-name/trunk/debian/docs
URL: http://svn.debian.org/wsvn/packages/re-name/trunk/debian/docs?rev=619&op=file
==============================================================================
--- packages/re-name/trunk/debian/docs (added)
+++ packages/re-name/trunk/debian/docs Tue Apr 23 20:20:01 2013
@@ -1,0 +1,2 @@
+README.en.txt
+debian/README.source

Added: packages/re-name/trunk/debian/patches/Makefile.patch
URL: http://svn.debian.org/wsvn/packages/re-name/trunk/debian/patches/Makefile.patch?rev=619&op=file
==============================================================================
--- packages/re-name/trunk/debian/patches/Makefile.patch (added)
+++ packages/re-name/trunk/debian/patches/Makefile.patch Tue Apr 23 20:20:01 2013
@@ -1,0 +1,52 @@
+Description: * Makes Makefile compliant with Debian.
+             * Add GCC hardening.
+Author: Joao Eriberto Mota Filho
+Last-Update: 2013-04-23
+--- a/Makefile
++++ b/Makefile
+@@ -3,23 +3,25 @@
+ #DEBUG	= -g -DDEBUG
+ 
+ CC	= gcc
+-PREFIX	= /usr/local
+-BINDIR	= /usr/local/bin
+-MANDIR	= /usr/local/man/man1
++PREFIX	= $(DESTDIR)/usr
++BINDIR	= $(DESTDIR)/usr/bin
++MANDIR	= $(DESTDIR)/usr/share/man/man1
+ 
+ DEFINES = -DHAVE_CONFIG_H -DCFG_UNIX_API
+ CFLAGS	= -Wall -O3 ${DEBUG} ${DEFINES}
+ 
++CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
++LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+ 
+ OBJS	= main.o rename.o fixtoken.o
+-TARGET	= renamex
++TARGET	= rename
+ MANPAGE	= renamex.1
+ 
+ all: $(TARGET)
+ 
+ $(TARGET) : $(OBJS)
+-	$(CC) $(CFLAGS) -o $@ $^
+-	cp $@ /usr/local/bin
++	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^
++#	cp $@ /usr/local/bin
+ 
+ static:	$(OBJS)
+ 	$(CC) $(CFLAGS) -static -o $@ $^
+@@ -32,10 +34,10 @@
+ 	rm -f config.status config.cache config.h config.log Makefile
+ 
+ install:
+-	install -o root -g root -m 0755 -s $(TARGET) $(BINDIR)
+-	install -o root -g root -m 0644 $(MANPAGE) $(MANDIR)
++	install -o root -g root -m 0755 -s $(TARGET) $(BINDIR)/re-name
++	install -o root -g root -m 0644 $(MANPAGE) $(MANDIR)/re-name.1
+ 	
+ %.o : %.c
+-	$(CC) $(CFLAGS) -c -o $@ $<
++	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -c -o $@ $<
+ 
+ 

Added: packages/re-name/trunk/debian/patches/manpage.patch
URL: http://svn.debian.org/wsvn/packages/re-name/trunk/debian/patches/manpage.patch?rev=619&op=file
==============================================================================
--- packages/re-name/trunk/debian/patches/manpage.patch (added)
+++ packages/re-name/trunk/debian/patches/manpage.patch Tue Apr 23 20:20:01 2013
@@ -1,0 +1,119 @@
+Description: * add binary name and section in manpage.
+             * change from renamex to re-name.
+Author: Joao Eriberto Mota Filho <eriberto at eriberto.pro.br>
+Last-Update: 2013-04-23
+--- a/renamex.1
++++ b/renamex.1
+@@ -1,18 +1,18 @@
+-.TH NAME SECTION
+-.SH Name
+-renamex \- file rename tool
++.TH re-name 1
++.SH NAME
++re-name \- file rename tool
+ 
+ .SH SYNOPSIS
+-.B renamex
++.B re-name
+ .I [options]  files ...
+ 
+ .SH DESCRIPTION
+-.BR Renamex 
++.BR re-name 
+ is a small and quick tool written in C to rename files. 
+ It can change, lowercase and uppercase the names of a batch of files, or 
+ change the files' 
+ .I ownership. 
+-.BR Renamex 
++.BR re-name 
+ is powered by the 
+ .I extended regular expression 
+ for searching and substituting string patterns in the names.
+@@ -59,7 +59,7 @@
+ .TP
+ .BR \-s/PATTERN/STRING[/SW]
+ Substitute PATTERN with STRING in the filenames.
+-.B renamex
++.B re-name
+ will searching the
+ .I PATTERN
+ in the names. If the 
+@@ -285,11 +285,11 @@
+ 
+ .SH EXAMPLES
+ .TP
+-.B renamex "\-l \-R" *
++.B re-name "\-l \-R" *
+ To lowercase all files' names recursively.
+ 
+ .TP
+-.B renamex "\-u \-s/abc/xyz/gi" *.c
++.B re-name "\-u \-s/abc/xyz/gi" *.c
+ Substitute all 
+ .I abc 
+ substrings appeared in C  sources  files  with
+@@ -297,7 +297,7 @@
+ ignoring the case, then uppercase the whole file name.
+ 
+ .TP
+-.B renamex "\-v \-s/.c/.cpp/s" *
++.B re-name "\-v \-s/.c/.cpp/s" *
+ Find all files with the 
+ .I '.c' 
+ suffix in the current directory and change them to 
+@@ -307,7 +307,7 @@
+ .TP
+ .B "find . \-name *.c > filename.lst"
+ .TP
+-.B renamex "\-s/.c/.cpp/s \-f" filename.lst
++.B re-name "\-s/.c/.cpp/s \-f" filename.lst
+ Find all files with the 
+ .I '.c' 
+ suffix under the current directory and change them to 
+@@ -315,7 +315,7 @@
+ suffix by the list file.
+ 
+ .TP
+-.B renamex "\-s/abc/12345/bi" *
++.B re-name "\-s/abc/12345/bi" *
+ Read names from the 
+ .I 'filename.lst' , 
+ find the last occurrence of 
+@@ -325,7 +325,7 @@
+ ignoring the case.
+ 
+ .TP
+-.B renamex "\-s/^[A\-Z].*file/nofile/r" *
++.B re-name "\-s/^[A\-Z].*file/nofile/r" *
+ The target substring starts with a capital letter, and ends with string
+ .I 'file' . 
+ There are 0 or any numbers of characters between the capital letter and 
+@@ -334,19 +334,19 @@
+ .I 'nofile'.
+ 
+ .TP
+-.B renamex "\-s/^[A\-Z].+file/nofile/eg" *
++.B re-name "\-s/^[A\-Z].+file/nofile/eg" *
+ Similar to above, except it uses extended regular expression, such as the 
+ .I '+' 
+ metacharacter, and replaces all matching strings with 
+ .I 'nofile'.
+ 
+ .TP
+-.B renamex "\-t \-s/^[A\-Z].+file/nofile/eg" *
++.B re-name "\-t \-s/^[A\-Z].+file/nofile/eg" *
+ .BR Test mode 
+ only. Simulate the rename process but no files would be actually changed.
+ 
+ .TP
+-.B renamex "\-o guest \-R" /home/custom
++.B re-name "\-o guest \-R" /home/custom
+ change the ownership of 
+ .I '/home/custom' 
+ to 
+@@ -357,5 +357,3 @@
+ .I '/home/custom' 
+ is a directory, all files' ownership in this directory tree will be changed to
+ .I 'guest' .
+-
+-

Added: packages/re-name/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/packages/re-name/trunk/debian/patches/series?rev=619&op=file
==============================================================================
--- packages/re-name/trunk/debian/patches/series (added)
+++ packages/re-name/trunk/debian/patches/series Tue Apr 23 20:20:01 2013
@@ -1,0 +1,2 @@
+manpage.patch
+Makefile.patch

Added: packages/re-name/trunk/debian/rules
URL: http://svn.debian.org/wsvn/packages/re-name/trunk/debian/rules?rev=619&op=file
==============================================================================
--- packages/re-name/trunk/debian/rules (added)
+++ packages/re-name/trunk/debian/rules Tue Apr 23 20:20:01 2013
@@ -1,0 +1,7 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@ --parallel

Propchange: packages/re-name/trunk/debian/rules
------------------------------------------------------------------------------
    svn:executable = 

Added: packages/re-name/trunk/debian/source/format
URL: http://svn.debian.org/wsvn/packages/re-name/trunk/debian/source/format?rev=619&op=file
==============================================================================
--- packages/re-name/trunk/debian/source/format (added)
+++ packages/re-name/trunk/debian/source/format Tue Apr 23 20:20:01 2013
@@ -1,0 +1,1 @@
+3.0 (quilt)

Added: packages/re-name/trunk/debian/watch
URL: http://svn.debian.org/wsvn/packages/re-name/trunk/debian/watch?rev=619&op=file
==============================================================================
--- packages/re-name/trunk/debian/watch (added)
+++ packages/re-name/trunk/debian/watch Tue Apr 23 20:20:01 2013
@@ -1,0 +1,2 @@
+version=3
+http://sf.net/rename/rename-(.*)\.tar\.gz




More information about the debian-br-team-commits mailing list