ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/scram
(Generate patch)

Comparing COMP/SCRAM/src/scram (file contents):
Revision 1.13 by williamc, Thu Mar 25 15:31:37 1999 UTC vs.
Revision 1.15 by williamc, Thu Mar 25 15:55:14 1999 UTC

# Line 7 | Line 7 | $inputcmd=shift;
7   $found='false';
8   $bold  = "\033[1m";
9   $normal = "\033[0m";
10 < @allowed_commands=qw(project build env install version list arch setup);
10 > @allowed_commands=qw(project build install version list arch setup);
11  
12   foreach $command ( @allowed_commands ) {
13           if ( $inputcmd=~/^$command\Z/i) {
# Line 20 | Line 20 | foreach $command ( @allowed_commands ) {
20   }
21  
22   if ( ! ( $found=~/true/ ) ) {
23 <        print "scram help\n---------\n";
24 <        print "Recognised Commands: \n";
23 >        helpheader('Recognised Commands');
24          foreach $command ( @allowed_commands ) {
25 <        print "       ".$command."\n";  
25 >        print "      $bold scram ".$command.$normal."\n";      
26          }
27 +        print "\n";
28 +        print "Help on individual commands available through\n\n";
29 +        print "$bold       scram".$normal." command$bold help $normal\n\n";
30   }
31  
32 + sub help_build {
33 +        &build;
34 + }
35   sub build {
36          # is this a based or free release?
37          FullEnvInit();
# Line 286 | Line 291 | sub setup {
291   sub help_setup {
292  
293   print <<ENDTEXT;
294 < Allows installation of a new tool/external package into an already existing
295 < area.
294 > Allows installation of a new tool/external package into an already
295 > existing area.
296  
297   Usage:
298  
299 <                 scram setup toolname
299 >                 $bold scram setup $normal toolname
300  
301   toolname : The name of the tool setup file required.
302   ENDTEXT
# Line 304 | Line 309 | Create an entry in the SCRAM database so
309   referenced in the 'project' command by a tag/version combination.
310   Usage: (command to be issued from inside an installed project)
311  
312 <                scram install [project_tag [version_tag]]
312 >        $bold   scram install $normal [project_tag [version_tag]]
313  
314   If not specified the project_tag and version_tag default to the project
315   name and version of the installation.
# Line 351 | Line 356 | project_version:
356          
357   ENDTEXT
358   }
359 +
360 + sub help_version {
361 + print <<ENDTEXT;
362 + Print the version number of scram
363 + Usage:
364 +                $bold scram version $normal
365 +
366 + ENDTEXT
367 + }
368 +
369 + sub help_arch {
370 + print <<ENDTEXT;
371 + Print out the architecture flag for the current machine.
372 +
373 + Usage:
374 +        $bold   scram arch $normal
375 + ENDTEXT
376 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines