Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [PATCH] tiny addition to book

svnutils
Discussion topic

Back to topic list

Re: [PATCH] tiny addition to book

Reply

Author =?UTF-8?Q?=C3=98yvind_A=2E_Holm?= <sunny at sunbase dot org>
Full name =?UTF-8?Q?=C3=98yvind_A=2E_Holm?= <sunny at sunbase dot org>
Date 2004-06-20 05:10:19 PDT
Message On 2004-06-16 10:15-0500 Archie Cobbs wrote:
> Øyvind A. Holm wrote:
> > On 2004-06-14 15:11-0500 Archie Cobbs wrote:
> > > Also, I wrote a simple script that slurps in "mime.types" files
> > > (in Apache httpd's format) and then scans a working hierarchy,
> > > setting svn:mime-type for all files with recognized suffixes..
> > > might be useful for the SVN utilities project?
> >
> > Indeed, that sounds like a very useful script...
>
> OK, you asked for it.. :-)
>
> The bad news is that it's a pretty brain-dead shell script. I'm sure
> there are some perl wizards who could compress this down to one line
> and make it run more efficiently.

It worked very well. I tested it using with /etc/mime.types and all
recognised files got their mime types properly attached. I have checked
it into svnutils using your tigris.org username "archiecobbs", file name
"svnmimeset.sh".

But there is a warning message when running it under Debian GNU/Linux
stable:

sandbox/svnutils$ svnmimeset.sh . /etc/mime.types
expr: warning: unportable BRE: `^.*\.\([^.]*\)$': using `^' as the first character
of the basic regular expression is not portable; it is being ignored
svn propset -q svn:mime-type text/plain ./trunk/mime/file1.txt
expr: warning: unportable BRE: `^.*\.\([^.]*\)$': using `^' as the first character
of the basic regular expression is not portable; it is being ignored
svn propset -q svn:mime-type text/html ./trunk/mime/dings.html

Seems strange that ^ should be incompatible, but I'll dig into it. I use
awk about once a year. :)

Mvh,
Øyvind A. Holm
---------------------
cat /dev/urandom >SCO

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

Re: [PATCH] tiny addition to book =?UTF-8?Q?=C3=98yvind_A=2E_Holm?= <sunny at sunbase dot org> =?UTF-8?Q?=C3=98yvind_A=2E_Holm?= <sunny at sunbase dot org> 2004-06-20 05:10:19 PDT
Messages per page: