Changeset 1486 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Base.pm
- Timestamp:
- Apr 25, 2012, 1:47:22 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Base.pm
r1433 r1486 108 108 my @dir = @_; 109 109 my $ret = mkpath(@dir, 0, 0755); 110 return( 0);110 return($ret); 111 111 } 112 112 … … 127 127 =item B<pb_system> 128 128 129 Encapsulate the "system" call for better output and return value test 130 Needs a $ENV{'PBTMP'} variable which is created by calling the pb_mktemp_init function 131 Needs pb_log support, so pb_log_init should have be nn called before.132 133 The first parameter is the shell command to call. this commend should NOT use redirections.129 Encapsulate the "system" call for better output and return value test. 130 Needs a $ENV{'PBTMP'} variable which is created by calling the pb_mktemp_init function. 131 Needs pb_log support, so pb_log_init should have been called before. 132 133 The first parameter is the shell command to call. This command should NOT use redirections. 134 134 The second parameter is the message to print on screen. If none is given, then the command is printed. 135 The third parameter print the result of the command after correct execution if value is verbose. If value is noredir, it avoids redirecting outputs (e.g. for vi). 136 This function returns theresult the return value of the system command.135 The third parameter print the result of the command after correct execution if value is verbose. If value is noredir, it avoids redirecting outputs (e.g. for vi). If value is quiet, doesn't print anything at all. 136 This function returns as a result the return value of the system command. 137 137 138 138 If no error reported, it prints OK on the screen, just after the message. Else it prints the errors generated.
Note:
See TracChangeset
for help on using the changeset viewer.