[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] tiny addition to book

From: Øyvind A. Holm <sunny_at_sunbase.org>
Date: 2004-06-20 14:10:19 CEST

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jun 20 14:11:25 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.