[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netsaintplug-devel
Subject:    [Netsaintplug-devel] awk-based version of subst
From:       Karl DeBisschop <kdebisschop () range ! infoplease ! com>
Date:       2000-07-20 14:38:09
[Download RAW message or body]

I uploaded and awk-based version of plugins-scripts/subst last night.
This both enhances that previous functionality of subst so that
'trsuted-path' should generally not be needed, and it uses awk rather
than perl, and thus is compliant with what FSF says is the build
environment that configure/make can depend on.

It's slower than the old perl version, so I will work on efficiency
improvements. Also I'm not sure it will handle lines like `/bin/ls |
/bin/grep`

This are fixable, though. So I think we can safely call this progress.

As far as developers, just write out the path to the binary in the
script - susbt replaces all occurences of
"(/.*)?/(bin|sbin|lib|libexec)/[a-zA-Z0-9]" with a working path. First
it check the path that is actually in the script, and leaves it in place
if it works. Then it loops through the search path, looking for the
target executable. If it is not found in the search path, the bare
command is used as the replace string, so the trusted-path would need to
be defined correctly for 'make test' to pass that plugin.

This is not perfect in a few ways, but it seems like a good start.
Comments are welcome. Meanwhile, I'll convert the other similar perl
scripts to awk. That will mean that a complete build will be possible
with just the FSF-approved standard tools. Perl will only be required
for 'make test'

-- 
Karl DeBisschop					kdebisschop@alert.infoplease.com
Family Education Network/Information Please	http://www.infoplease.com
Netsaint Plugin Developer			kdebisschop@users.sourceforge.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic