34 $Tot =
'svn co https://fossology.svn.sourceforge.net/svnroot/fossology/trunk/fossology';
36 $options = getopt(
'hc:u');
38 $Usage =
"$argv[0] [-h] [-c {top | svnPath}] [-u]\n";
45 if(array_key_exists(
'h',$options)) {
49 if(array_key_exists(
'c',$options)) {
51 $coOpt = strtolower($Opt);
53 $last = exec($Tot, $output, $rtn);
54 print
"checkout results are, last and output:$last\n";
55 print_r($output) .
"\n";
57 print
"ERROR! Could not check out FOSSology sources at\n$Tot\n";
62 $last = exec($coOpt, $output, $rtn);
63 print
"checkout results are, last and output:$last\n";
64 print_r($output) .
"\n";
66 print
"ERROR! Could not check out FOSSology sources at\n$coOpt\n";
72 if(array_key_exists(
'u',$options)) {
74 $last = exec($svnUp, $output, $rtn);
75 print
"svn up results are, last and output:$last\n";
76 print_r($output) .
"\n";
79 print
"ERROR! Could not svn up FOSSology sources at $dir\n";