a1b1321d98
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. PR: ports/73191 Submitted by: Kuang-che Wu <kcwu@csie.org>
25 lines
630 B
Plaintext
25 lines
630 B
Plaintext
--- Makefile.orig Wed Oct 27 16:52:11 2004
|
|
+++ Makefile Wed Oct 27 16:51:52 2004
|
|
@@ -1,17 +1,17 @@
|
|
DESTDIR=
|
|
-PREFIX=/usr/local
|
|
-MANDIR=$(PREFIX)/share/man
|
|
+PREFIX?=/usr/local
|
|
+MANDIR=$(PREFIX)/man
|
|
|
|
all: manpage
|
|
|
|
install: all
|
|
mkdir -p $(DESTDIR)$(MANDIR)/man1/
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin/
|
|
- cp convmv.1.gz $(DESTDIR)$(MANDIR)/man1/
|
|
+ cp convmv.1 $(DESTDIR)$(MANDIR)/man1/
|
|
install -m 755 convmv $(DESTDIR)$(PREFIX)/bin/
|
|
|
|
manpage:
|
|
- pod2man --section 1 --center=" " convmv | gzip > convmv.1.gz
|
|
+ pod2man --section 1 --center=" " convmv > convmv.1
|
|
|
|
clean:
|
|
rm -f convmv.1.gz convmv-*.tar.gz MD5sums .files .name
|