Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Oct 2004 17:09:53 +0800 (CST)
From:      Kuang-che Wu <kcwu@csie.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/73191: [NEW PORT] converters/convmv: Convert filenames from one encoding to another
Message-ID:  <200410270909.i9R99rQl064658@kcwu.homeip.net>
Resent-Message-ID: <200410270910.i9R9AQud025691@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         73191
>Category:       ports
>Synopsis:       [NEW PORT] converters/convmv: Convert filenames from one encoding to another
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 27 09:10:25 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kuang-che Wu
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD kcwu.homeip.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Sat Sep  4 05:33:38 CST
>Description:
convmv is meant to help convert a single filename, a directory tree and the
contained files or a whole filesystem into a different encoding. It just
converts the filenames, not the content of the files. A special feature of
convmv is that it also takes care of symlinks, also converts the symlink target
pointer in case the symlink target is being converted, too.

All this comes in very handy when one wants to switch over from old 8-bit
locales to UTF-8 locales. It is also possible to convert directories to UTF-8
which are already partly UTF-8 encoded. convmv is able to detect if certain
files are UTF-8 encoded and will skip them by default. To turn this smartness
off use the --nosmart switch.

WWW: http://j3e.de/linux/convmv/man/

- Kuang-che Wu
  kcwu@csie.org

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- convmv-1.08.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	convmv
#	convmv/distinfo
#	convmv/Makefile
#	convmv/pkg-descr
#	convmv/files
#	convmv/files/patch-Makefile
#
echo c - convmv
mkdir -p convmv > /dev/null 2>&1
echo x - convmv/distinfo
sed 's/^X//' >convmv/distinfo << 'END-of-convmv/distinfo'
XMD5 (convmv-1.08.tar.gz) = 40707f82b1a9631fe715f68f94431d3a
XSIZE (convmv-1.08.tar.gz) = 20657
END-of-convmv/distinfo
echo x - convmv/Makefile
sed 's/^X//' >convmv/Makefile << 'END-of-convmv/Makefile'
X# New ports collection makefile for:	convmv
X# Date created:		27 October 2004
X# Whom:			Kuang-che Wu <kcwu@csie.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	convmv
XPORTVERSION=	1.08
XCATEGORIES=	converters perl5
XMASTER_SITES=	http://j3e.de/linux/convmv/
X
XMAINTAINER=	kcwu@csie.org
XCOMMENT=	Convert filenames from one encoding to another
X
XUSE_REINPLACE=	yes
XUSE_PERL5=	yes
XPLIST_FILES=	bin/convmv
X
XMAN1=		convmv.1
X
X.include <bsd.port.mk>
END-of-convmv/Makefile
echo x - convmv/pkg-descr
sed 's/^X//' >convmv/pkg-descr << 'END-of-convmv/pkg-descr'
Xconvmv is meant to help convert a single filename, a directory tree and the
Xcontained files or a whole filesystem into a different encoding. It just
Xconverts the filenames, not the content of the files. A special feature of
Xconvmv is that it also takes care of symlinks, also converts the symlink target
Xpointer in case the symlink target is being converted, too.
X
XAll this comes in very handy when one wants to switch over from old 8-bit
Xlocales to UTF-8 locales. It is also possible to convert directories to UTF-8
Xwhich are already partly UTF-8 encoded. convmv is able to detect if certain
Xfiles are UTF-8 encoded and will skip them by default. To turn this smartness
Xoff use the --nosmart switch.
X
XWWW: http://j3e.de/linux/convmv/man/
X
X- Kuang-che Wu
X  kcwu@csie.org
END-of-convmv/pkg-descr
echo c - convmv/files
mkdir -p convmv/files > /dev/null 2>&1
echo x - convmv/files/patch-Makefile
sed 's/^X//' >convmv/files/patch-Makefile << 'END-of-convmv/files/patch-Makefile'
X--- Makefile.orig	Wed Oct 27 16:52:11 2004
X+++ Makefile	Wed Oct 27 16:51:52 2004
X@@ -1,17 +1,17 @@
X DESTDIR=
X-PREFIX=/usr/local
X-MANDIR=$(PREFIX)/share/man
X+PREFIX?=/usr/local
X+MANDIR=$(PREFIX)/man
X 
X all: manpage
X 
X install: all
X 	mkdir -p $(DESTDIR)$(MANDIR)/man1/
X 	mkdir -p $(DESTDIR)$(PREFIX)/bin/
X-	cp convmv.1.gz $(DESTDIR)$(MANDIR)/man1/
X+	cp convmv.1 $(DESTDIR)$(MANDIR)/man1/
X 	install -m 755 convmv $(DESTDIR)$(PREFIX)/bin/
X 
X manpage:
X-	pod2man --section 1 --center=" " convmv | gzip > convmv.1.gz
X+	pod2man --section 1 --center=" " convmv > convmv.1
X 
X clean:
X 	rm -f convmv.1.gz convmv-*.tar.gz MD5sums .files .name
END-of-convmv/files/patch-Makefile
exit
--- convmv-1.08.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410270909.i9R99rQl064658>