On 2/19/02 at 6:25 AM, Mike Noyes <[EMAIL PROTECTED]>
wrote:

> At 2002-02-18 23:31 -0600, David Douthitt wrote:

> David,
> This would be great. We definitely need a way to test
> packages against current releases/branches. Will
> redirection to file of output created by the package test
> run be possible? I'd like to see this information included
> in, or distributed with our packages.
> 
> I'd prefer to see the information distributed with our
> packages in a separate parseable file. This will allow
> creation of a phpWS module, that is able to index our
> packages by release/branch compatibility

Gak!  I was just thinking that someone (like an rcf developer or a
Shorewall developer, etc.) would test their software against the
current versions - and that would be that.

You're going in way over my head - seems like overkill.  I'd just say
the following: Compatable with: DistroX versionZ; DistroY versionQ
etc...

Or very possibly, a script that would run and test it.  So thus, not
only the developer could use it, but a general user.  The script would
run, and then it would say one of two things:

********************************
This software will not
run on your system.  Check
the messages above for the
reason.
********************************

...or...

Compatability verified!

> OT: regexp question
> BTW, is it possible to use a not bracket expression
> against a string?
> Here is an example that doesn't work. :-(
> 
> 'Content-Type: .*[^\(plain\|signed\)]'

The "(...|...)" construct is not recognized by much - I know egrep
(grep -e) recognizes it, but grep does not.

If you have UNIX in a Nutshell (worth getting!) look up the regexp
section - in mine, that's one of the most commonly used parts.  Not
every regexp function is available everywhere there's regexps to be
had (like vi, grep, egrep, sed...)

Also, the way you've got it there, you are looking for anything that
starts with:

"Content-Type: "

...followed by any characters, then followed by one of the characters
NOT in the set of: ( a e i d g l n p ) |

If you are using a compatable egrep, you want:

egrep "Content-Type: .*(plain|signed)"

You could do the same thing with sed this way:

sed -n '/Content-Type: / {
/plain/p
/signed/p
}'
--
David Douthitt
UNIX Systems Administrator
HP-UX, Unixware, Linux
[EMAIL PROTECTED]

_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to