23 $Tot =
'svn co https://fossology.svn.sourceforge.net/svnroot/fossology/trunk/fossology';
25 $options = getopt(
'hc:u');
27 $Usage =
"$argv[0] [-h] [-c {top | svnPath}] [-u]\n";
34 if(array_key_exists(
'h',$options)) {
38 if(array_key_exists(
'c',$options)) {
40 $coOpt = strtolower($Opt);
42 $last = exec($Tot, $output, $rtn);
43 print
"checkout results are, last and output:$last\n";
44 print_r($output) .
"\n";
46 print
"ERROR! Could not check out FOSSology sources at\n$Tot\n";
51 $last = exec($coOpt, $output, $rtn);
52 print
"checkout results are, last and output:$last\n";
53 print_r($output) .
"\n";
55 print
"ERROR! Could not check out FOSSology sources at\n$coOpt\n";
61 if(array_key_exists(
'u',$options)) {
63 $last = exec($svnUp, $output, $rtn);
64 print
"svn up results are, last and output:$last\n";
65 print_r($output) .
"\n";
68 print
"ERROR! Could not svn up FOSSology sources at $dir\n";