$cont =~ s/^\s*#+\s*//;
$args .= " ".$cont;
}
+ $args = undef if ($args =~ /^\(\s*\)$/);
}
- push(@out, "=head2 $name$args");
- push(@out, "");
- foreach $c (@cmts) {
- $c =~ s/^\s*#+\s*//;
- push(@out, $c);
+ if (@cmts || $args) {
+ push(@out, "=head2 $name$args");
+ push(@out, "");
+ if (!@cmts) {
+ @cmts = ( "MISSING DOCUMENTATION" );
+ }
+ foreach $c (@cmts) {
+ $c =~ s/^\s*#+\s*//;
+ push(@out, $c);
+ }
+ push(@out, "");
+ push(@out, "=cut");
}
- push(@out, "");
- push(@out, "=cut");
push(@out, $lines[$i]);
@cmts = ( );
$count++;
# cron-lib.pl
# Common crontab functions
-# XXX support for envs in /etc/crontab and /etc/cron.d (impossible!)
do '../web-lib.pl';
&init_config();
}
# find_cron_process(&job, [&procs])
+# Finds the running process that was launched from a cron job.
+# job - A cron job hash reference
+# procs - An optional array reference of running process hash refs
sub find_cron_process
{
local @procs;
unlink("deb/${product}_$ver.plain");
print "Wrote source deb/${product}_$ver.dsc\n";
-if (!$webmail) {
+if (!$webmail && -d "/usr/local/webadmin/deb/repository") {
# Add to our repository
chdir("/usr/local/webadmin/deb/repository");
system("reprepro -Vb . remove sarge $product");
}
}
+if (!$webmail && -d "/usr/local/webadmin/rpm/yum") {
+ # Add to our repository
+ system("cp $rpms_dir/webmin-$ver-$rel.noarch.rpm /usr/local/webadmin/rpm/yum");
+ }
+
-desc=CSS Overlay Test
+desc=CSS Overlay Demo Theme
+overlay=1
+webmin=1
+usermin=1
+depends=virtual-server-theme
+version=1.0
print &ui_submit($text{'session_login'});
print &ui_reset($text{'session_clear'});
print &ui_form_end();
+print "</center>\n";
print "$text{'session_postfix'}\n";
-print "</center>\n";
# Output frame-detection Javascript, if theme uses frames
if ($tconfig{'inframe'}) {