9
rm -f .ubuntu-html5-theme.releases-list
12
trap cleanup EXIT INT QUIT ILL KILL SEGV TERM
16
wget -q -O ./.ubuntu-html5-theme.releases-list https://code.launchpad.net/ubuntu-html5-theme
17
cat .ubuntu-html5-theme.releases-list | \
19
grep ~ubuntu-html5-theme-devs | \
20
awk '{match($0, /~ubuntu-html5-theme-devs\/ubuntu-html5-theme\/([^\"]*)/, releases); print releases[1]}'
25
echo "Downloading release $rel..."
26
bzr branch https://code.launchpad.net/~ubuntu-html5-theme-devs/ubuntu-html5-theme/$1 $WORKDIR/$rel
27
if [ "$?" -ne 0 ]; then
28
echo "Unable to download release $rel"
34
if [ ! -d $OUTDIR/www ]; then
35
echo "No 'www' folder found in the current directory"
39
if [ -d $OUTDIR/ambiance ]; then
40
echo "There is already an 'ambiance' folder in the project directory"
45
mv $WORKDIR/$1/0.1/ambiance $OUTDIR/www
48
do_convert_project() {
49
if [ ! -e $OUTDIR/www/index.html ]; then
50
echo "No index.html found in the 'www' folder"
54
sed -i 's:/usr/share/ubuntu-html5-ui-toolkit/0.1/::' $OUTDIR/www/index.html
68
echo "Not implemented..."
72
echo "Usage: $0 {list|install <release>|convert|update}"