summaryrefslogtreecommitdiff
path: root/lib/sbin/CVSUpdate.pl
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-12-14 10:46:06 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-12-14 10:46:06 +0000
commit46c41e40a3c9c02dbd13d12473ce16757b519e97 (patch)
tree7a0d5e3406eb8704910d7a0b0dd8e4cbb840650c /lib/sbin/CVSUpdate.pl
parentdb06d574c86d782d08eabea6c4595b72792fb946 (diff)
Merge the debug and network variables, now there is just debug which
doesn't need a network and prints what is happening git-svn-id: http://svn.cactuscode.org/flesh/trunk@2506 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/CVSUpdate.pl')
-rw-r--r--lib/sbin/CVSUpdate.pl9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/sbin/CVSUpdate.pl b/lib/sbin/CVSUpdate.pl
index 1dece7e6..7729de09 100644
--- a/lib/sbin/CVSUpdate.pl
+++ b/lib/sbin/CVSUpdate.pl
@@ -11,12 +11,11 @@
require "lib/sbin/MakeUtils.pl";
-$network = 1;
-if (!$network)
+$debug = 0;
+if ($debug)
{
print "DEBUG mode: cvs commands not issued\n\n";
}
-$debug = 0;
print("\nUpdating Flesh\n");
$command = "cvs -z 3 -q update -d -P CONTRIBUTORS COPYRIGHT Makefile lib doc src";
@@ -37,7 +36,7 @@ if ($debug)
}
}
}
-if ($network)
+if (!$debug)
{
open (CS, "$command |");
while (<CS>)
@@ -85,7 +84,7 @@ foreach $thorn (sort keys %info)
}
}
}
- if ($network)
+ if (!$debug)
{
open (CS, "$command |");
while (<CS>)