Subversion Repositories oidplus

Rev

Rev 647 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 647 Rev 648
Line 241... Line 241...
241
	exec("rm -rf $outdir_new", $out, $ec);
241
	exec("rm -rf $outdir_new", $out, $ec);
242
 
242
 
243
	file_put_contents($outfile, $outscript);
243
	file_put_contents($outfile, $outscript);
244
}
244
}
245
echo "\n";
245
echo "\n";
-
 
246
 
-
 
247
 
-
 
248
// Now write the release messages
-
 
249
 
-
 
250
 
-
 
251
$out = array();
-
 
252
$ec = 0;
-
 
253
exec('svn log https://svn.viathinksoft.com/svn/oidplus/trunk --xml', $out, $ec);
-
 
254
if ($ec != 0) die();
-
 
255
 
-
 
256
$str = implode("\n",$out);
-
 
257
 
-
 
258
$xml = simplexml_load_string($str);
-
 
259
 
-
 
260
$out = array();
-
 
261
 
-
 
262
foreach ($xml as $a) {
-
 
263
 
-
 
264
	$out[(int)$a->attributes()->revision] = array(
-
 
265
 
-
 
266
		'date' => date('Y-m-d H:i:s',strtotime((string)$a->date)),
-
 
267
		'author' => (string)$a->author,
-
 
268
		'msg' => trim((string)$a->msg),
-
 
269
 
-
 
270
	);
-
 
271
 
-
 
272
}
-
 
273
 
-
 
274
ksort($out);
-
 
275
 
-
 
276
file_put_contents($output_dir.'/releases.ser', serialize($out));
-
 
277