source: ubiquity-slideshow-ubuntu/trunk/fuentes/test-slideshow.sh @ 1182

Last change on this file since 1182 was 1182, checked in by daduve, 4 years ago

Changes to new release

  • Property svn:executable set to *
File size: 804 bytes
Line 
1#!/bin/bash
2
3TITLE="Slideshow tester"
4
5SOURCE=.
6BUILD=$SOURCE/build
7SOURCESLIDES=$SOURCE/slideshows
8
9slideshow=$1
10if [ -z "$slideshow" ]
11        then
12                slideshows=""
13                for show in $SOURCESLIDES/*; do
14                        showname=$(basename $show)
15                        #oddly placed files we need to ignore
16                        [ $showname = "link-core" ] && continue
17                        #if we're still going, add this slideshow to the list
18                        select=FALSE
19                        [ $showname = "ubuntu" ] && select=TRUE
20                        slideshows="$slideshows $select $showname"
21                done
22                slideshow=$(zenity --list --radiolist --column="Pick" --column="Slideshow" $slideshows --title="$TITLE" --text="Choose a slideshow to test")
23                [ "$slideshow" = "" ] | [ "$slideshow" = "(null)" ] && exit
24fi
25
26language=$2
27if [ -n "$language" ]
28        then
29                make test.$slideshow.$language
30        else
31                make clean
32                make test.$slideshow
33fi
34
Note: See TracBrowser for help on using the repository browser.