Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 347 → Rev 348

/belle2/masterclass/snapshot.sh
1,0 → 0,0
tar czvf ../masterclass_latest.tgz *.* data js src
tar czvf ../masterclass_latest.tgz *.* data js --exclude='*.pcm' --exclude='*.so' --exclude='*.d' src
/belle2/masterclass/update.php
2,11 → 2,15
<body>
<?php
 
$output = shell_exec("curl -L http://belle2.ijs.si/masterclass_latest.tgz | tar xzv ");
//$output = shell_exec("svn update");
echo "<pre>$output</pre>";
//$output = shell_exec("ls -latr tmp");
//echo "<pre>$output</pre>";
$hostname = gethostname();
if ($hostname != "belle2.ijs.si") {
$output = shell_exec("curl -L http://belle2.ijs.si/masterclass_latest.tgz | tar xzv ");
//$output = shell_exec("svn update");
echo "<pre>$output</pre>";
//$output = shell_exec("ls -latr tmp");
//echo "<pre>$output</pre>";
}
 
?>
 
<h3>Update completed</h3>