File: README

package info (click to toggle)
detox 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 616 kB
  • ctags: 552
  • sloc: ansic: 2,330; yacc: 283; sh: 257; makefile: 187; lex: 109
file content (136 lines) | stat: -rw-r--r-- 5,596 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
-----------------------------------------------------------------------------
                                   OVERVIEW
-----------------------------------------------------------------------------

detox is a program that renames files to make them easier to work with under
Unix and related operating systems.  Spaces and various other unsafe
characters (such as "$") get replaced with "_".  ISO 8859-1 (Latin-1)
characters can be replaced as well, as can UTF-8 characters.  More details
are contained in the detox.1 man page.

This is a BETA release.  Please watch for falling bits.

-----------------------------------------------------------------------------
                           COMPILATION INSTRUCTIONS
-----------------------------------------------------------------------------

Compilation:
	./configure
	make

Installation:
	make install

Installation that overwrites config files and translation tables:
	make force-install

-----------------------------------------------------------------------------
                              COMPILATION NOTES
-----------------------------------------------------------------------------

Ensure that the path to lex/yacc (or an equivalent) is in your $PATH
environmental variable.  For instance, under Solaris, you may need to add
/usr/ccs/bin to your path to get detox to compile:
	export PATH=${PATH}:/usr/ccs/bin

     -------------------------------------------------------------------

To get detox working with long options on Darwin or Solaris (or any other OS
without getopt_long in its C library), I've included support for libpopt.
Install libpopt and configure with the following:
	./configure --with-popt

If you've installed libpopt in a directory other than /usr, which is likely,
you'll want to specify the base path to libpopt.  So, if popt.h is in
/usr/local/include, you'll run configure like so:
	./configure --with-popt=/usr/local

-----------------------------------------------------------------------------
                                RUNTIME NOTES
-----------------------------------------------------------------------------

The most important option to learn is -n, aka --dry-run.  This will let you
run detox without actually changing any files, so that you can get an idea
of what detox is all about.

The simplest way to run detox is to just run it on a directory containing
files that need work:
	detox xfer_files/

You can also just to specify the filename:
	detox my\ bad\ file.txt

You can also specify recursion (this works best on directories):
	detox -r /music/transferred_from_elsewhere/

-----------------------------------------------------------------------------
                                 OTHER NOTES
-----------------------------------------------------------------------------

This project was initially developed under Linux (RedHat 7.x, 8.x), and is
presently being maintained under the FreeBSD 5.x series.  If you run into any
problems with installation or operation please feel free to contact me.

-----------------------------------------------------------------------------
                                     BUGS
-----------------------------------------------------------------------------

None known at the moment.

-----------------------------------------------------------------------------
	  SPECIAL THANKS (TO CONTRIBUTORS OF CODE AND SUGGESTIONS)
-----------------------------------------------------------------------------

Many thanks to Miguel Angelo Rozsas for suggesting UTF-8 support and his
valuable input following that suggestion.  This change helped introduce
translation tables into detox.

Ciaran McCreesh put together a package for Gentoo (rock!), submitted a patch
to add a prefix onto install paths (for package builds) and helped fix
parallel builds.

Lou Alfonso for suggesting that the safe filter be controlled through a
table so that it can be tuned easily.

Christoph Wegscheider noticed that the install script was installing
everything 755, for pointing out that not everyone has lex or yacc, and for
his input on how umlauts should be converted.

Gerg Thor informed me that characters on the PowerPC platform are unsigned
by default and that the libpopt parser was rolling into an infinite loop as
a result.

Jon Amundsen pointed out that the lowercase converting sequence was only
really working on case-insensitive filesystems.

zero_dogg from sourceforget.net suggested adding the ability to prevent
certain files from being translated.

rsnemmen from sourceforge.net pointed out a bug in the way directories are
handled when passed in from the command line.

-----------------------------------------------------------------------------
                                    THANKS
-----------------------------------------------------------------------------

Eric S. Raymond for his work on "The Art of UNIX Programming"

http://www.bbsinc.com/iso8859.html for their help in building a complete list
of Latin-1 translations.

SourceForge.net for their generous hosting of this and many other projects.

http://en.wikipedia.org/wiki/UTF-8 for its help with explaining UTF-8.

Data Structures Using C - Tenenbaum, Langsam and Augenstein - for their help
with hashes.

Paul Oakenfold for his unbelievable mixes.  Version 1.0.0 was developed with
the help of his Great Wall mix.

-----------------------------------------------------------------------------
                                   CONTACT
-----------------------------------------------------------------------------

Doug Harple <purgedhalo at users.sourceforge.net>