further work towards letting this work on other systems
[os-autoinst:os-autoinst.git] / tools / isotovideo
1 #!/bin/sh
2
3 iso=$1
4 if test -z "$iso" ; then
5         echo "usage: $0 ISO"
6         exit 1
7 fi
8 isodir=`pwd`
9 #isodir=~/public_html/mirror/opensuse
10 scriptdir=`dirname $0`/..
11 # make absolute path since we change dir
12 export SUSEISO=`$scriptdir/tools/absolutize $iso`
13 cd $scriptdir
14 echo changing directory to `/bin/pwd`
15
16 export BETA=1
17 export GWDG=1
18 export HTTPPROXY=192.168.234.34:3128
19
20 export SCREENSHOTINTERVAL=0.5
21
22 echo testing $SUSEISO
23 # cleanup
24 killall kvm 2>/dev/null
25 rm -rf qemuscreenshot/*.ppm
26 ./start.pl
27 killall kvm 2>/dev/null
28
29 name=$(perl -e '$_=shift;s{.*/}{};s/-Media.iso//;print' $SUSEISO)
30 mkdir -p video
31 echo tools/ppmtompg qemuscreenshot video/$name
32 tools/ppmtompg qemuscreenshot video/$name
33 mv video/* $isodir/video/
34