summaryrefslogtreecommitdiffstats
path: root/Construct
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-07 11:33:19 (GMT)
committerSteven Knight <knight@baldmt.com>2001-09-07 11:33:19 (GMT)
commit1833dc465fcf538242955e4ce133dbe8b7cefc9f (patch)
tree696bc5babb89e64f0fff982262ca4becb4411541 /Construct
parent0e9a7dc0f7c041917cbbc273daf49ffcd315dfef (diff)
downloadSCons-1833dc465fcf538242955e4ce133dbe8b7cefc9f.zip
SCons-1833dc465fcf538242955e4ce133dbe8b7cefc9f.tar.gz
SCons-1833dc465fcf538242955e4ce133dbe8b7cefc9f.tar.bz2
Add a man page.
Diffstat (limited to 'Construct')
-rw-r--r--Construct13
1 files changed, 7 insertions, 6 deletions
diff --git a/Construct b/Construct
index 72db202..d12673f 100644
--- a/Construct
+++ b/Construct
@@ -14,10 +14,11 @@ Default qw( . );
#
# An internal "whereis" routine to figure out if we have a
-# given program available.
+# given program available. Put it in the "cons::" package
+# so subsidiary Conscript files can get at it easily, too.
#
use Config;
-sub whereis {
+sub cons::whereis {
my $file = shift;
foreach my $dir (split(/$Config{path_sep}/, $ENV{PATH})) {
$f = File::Spec->catfile($dir, $file);
@@ -32,10 +33,10 @@ sub whereis {
# This will allow people to still do SCons work even if they
# don't have Aegis or RPM installed, for example.
#
-$aegis = whereis('aegis');
-$aesub = whereis('aesub');
-$rpm = whereis('rpm');
-$jw = whereis('jw');
+$aegis = cons::whereis('aegis');
+$aesub = cons::whereis('aesub');
+$rpm = cons::whereis('rpm');
+$jw = cons::whereis('jw');
#
# Now grab the information that we "build" into the files (using sed).