1
0
Fork 0
forked from len0rd/rockbox

sims.pl - Do not create zip if build fails. This should prevent working simulator builds being overwritten by failed builds when uploaded to the hosting server.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23827 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Chicoine 2009-12-03 14:55:22 +00:00
parent 85fd100079
commit 1ac3b4b605

View file

@ -106,6 +106,16 @@ sub runone {
# build the target # build the target
$a = buildit($dir, $confnum, $extra); $a = buildit($dir, $confnum, $extra);
# Do not continue if the rockboxui executable is not created. This will
# prevent a good build getting overwritten by a bad build when
# uploaded to the web server.
unless ( (-e "rockboxui") || (-e "rockboxui.exe") ) {
print "No rockboxui, clean up and return\n" if($verbose);
chdir "..";
system("rm -rf build-$dir");
return $a;
}
if ($strip) { if ($strip) {
print "Stripping binaries\n" if ($verbose); print "Stripping binaries\n" if ($verbose);
# find \( -name "*.exe" -o -name "*.rock" -o -name "*.codec" \) -exec ls -l "{}" ";" # find \( -name "*.exe" -o -name "*.rock" -o -name "*.codec" \) -exec ls -l "{}" ";"