Author: cwittich
Date: Sun Mar 9 13:31:40 2008
New Revision: 32627
URL:
http://svn.reactos.org/svn/reactos?rev=3D32627&view=3Drev
Log:
add script to delete invalid iso files from webserver
Added:
trunk/tools/buildbot/scripts/Linux/cleaniso (with props)
Added: trunk/tools/buildbot/scripts/Linux/cleaniso
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/buildbot/scripts/Linux/=
cleaniso?rev=3D32627&view=3Dauto
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/tools/buildbot/scripts/Linux/cleaniso (added)
+++ trunk/tools/buildbot/scripts/Linux/cleaniso Sun Mar 9 13:31:40 2008
@@ -1,0 +1,19 @@
+#!/bin/bash
+for CD in boot live
+do
+ ls -l --size -r /home/rosbuild/isostorage/$CD*.7z | awk '{ print $10 }'=
| while read fname
+ do
+ FILECOUNT=3D`7za t $fname | grep -e 'Files:' | awk '{ print $2 }'`
+ if [ $FILECOUNT ]; then
+ if [ $FILECOUNT -eq 0 ]; then
+ echo $fname [damaged] - deleting
+ rm -f $fname
+ fi
+ else
+ echo $fname [ok] - skipping
+ break
+ fi
+ done
+done
+
+
Propchange: trunk/tools/buildbot/scripts/Linux/cleaniso
---------------------------------------------------------------------------=
---
svn:eol-style =3D native