summaryrefslogtreecommitdiff
path: root/bin/msvc_auto_compile.pl
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-12-14 18:45:34 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-12-14 18:45:34 +0000
commit9d5225ea472ea6ec46bd77223b34191f7c6f389b (patch)
tree6c04a00db80e7825ef212e8a7484ed5e4547c2ae /bin/msvc_auto_compile.pl
parentfd8cc097db5cc6ba5001bce1437ffe2af1d6051e (diff)
downloadATCD-9d5225ea472ea6ec46bd77223b34191f7c6f389b.tar.gz
ChangeLogTag:Thu Dec 14 10:36:45 2000 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'bin/msvc_auto_compile.pl')
-rwxr-xr-xbin/msvc_auto_compile.pl21
1 files changed, 16 insertions, 5 deletions
diff --git a/bin/msvc_auto_compile.pl b/bin/msvc_auto_compile.pl
index f90db53c151..4630cd2f0a2 100755
--- a/bin/msvc_auto_compile.pl
+++ b/bin/msvc_auto_compile.pl
@@ -23,6 +23,7 @@ else {
"$ACE_ROOT\\tests",
"$ACE_ROOT\\websvcs");
+$debug = 0;
$verbose = 0;
$print_status = 0;
$Ignore_errors = 0; # By default, bail out if an error occurs.
@@ -104,11 +105,17 @@ sub Build ($$)
{
my ($project, $config) = @_;
- print "Auto_compiling $project : $config\n";
-
- print "Building $project $config\n" if $verbose;
-
- return system ("msdev.com $project /MAKE \"$config\" $Build_Cmd $useenv");
+ if ($debug == 1) {
+ print "$project\n";
+ return 0;
+ }
+ else {
+ print "Auto_compiling $project : $config\n";
+
+ print "Building $project $config\n" if $verbose;
+
+ return system ("msdev.com $project /MAKE \"$config\" $Build_Cmd $useenv");
+ }
}
# Only builds the core libraries.
@@ -227,6 +234,9 @@ while ( $#ARGV >= 0 && $ARGV[0] =~ /^(-|\/)/ )
print "Ignore errors\n" if ( $verbose );
$Ignore_errors = 1;
}
+ elsif ($ARGV[0] =~ /^-d$/i) { # debug
+ $debug = 1;
+ }
elsif ($ARGV[0] =~ '-v') { # verbose mode
$verbose = 1;
}
@@ -287,6 +297,7 @@ while ( $#ARGV >= 0 && $ARGV[0] =~ /^(-|\/)/ )
}
elsif ($ARGV[0] =~ '-(\?|h)') { # Help information
print "Options\n";
+ print "-d = Debug (only print out projects)\n";
print "-k = Ignore Errors\n";
print "-v = Script verbose Mode\n";
print "-s = Print status messages to STDERR\n";