Beispiel #1
0
                $file = $argv[2];
            }
            break;
    }
}
if ($input === '') {
    ?>
Several documentation possibilities:
 0 : whole documentation (1 + 2 + 3 + 4)
 1 : only includes
 2 : only languages
 3 : only maintenance
 4 : only skins
 5 : only a given file<?php 
    while (!is_numeric($input)) {
        $input = readaline("\nEnter your choice [0]:");
        if ($input == '') {
            $input = 0;
        }
    }
}
/*
switch ($input) {
case 0:
	$command .= " -f $mwBaseFiles -d $mwPathI,$mwPathL,$mwPathM,$mwPathS";
	break;
case 1:
	$command .= "-d $mwPathI";
	break;
case 2:
	$command .= "-d $mwPathL";
Beispiel #2
0
        break;
    case 1:
        $input = $mwPathI;
        break;
    case 2:
        $input = $mwPathL;
        break;
    case 3:
        $input = $mwPathM;
        break;
    case 4:
        $input = $mwPathS;
        break;
    case 5:
        if (!isset($file)) {
            $file = readaline("Enter file name {$mwPath}");
        }
        $input = $mwPath . $file;
    case 6:
        $input = $mwPath;
        $exclude_patterns = 'extensions';
}
$versionNumber = getSvnRevision($input);
if ($versionNumber === false) {
    # Not using subversion ?
    $svnstat = '';
    # Not really useful if subversion not available
    # @todo FIXME
    $version = 'trunk';
} else {
    $version = "trunk (r{$versionNumber})";