forked from Guake/guake
-
Notifications
You must be signed in to change notification settings - Fork 2
/
dev.sh
executable file
·60 lines (49 loc) · 1.66 KB
/
dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# This script is used by the main developer to quickly compile and install the current version
# of Guake sources. Nothing say it will work directly on your environment. Use with caution!
NO_INSTALL=true
EXEC_AUTOGEN=false
EXEC_UPDATE_PO=false
echo "execute guake for developer."
echo "use --no-install to avoid installing guake on your system"
echo "(beware, gconf schema will be altered)"
echo "use --reinstall to force complete reinstall"
echo "use --update-po to force update translations"
if [[ $1 == "--install" ]]; then
NO_INSTALL=false
fi
if [[ $1 == "--reinstall" ]]; then
EXEC_AUTOGEN=true
fi
if [[ $1 == "--update-po" ]]; then
EXEC_UPDATE_PO=true
fi
if [[ ! -f configure ]]; then
EXEC_AUTOGEN=true
fi
if [[ $EXEC_AUTOGEN == true ]]; then
sudo apt-get install -y build-essential python autoconf
sudo apt-get install -y gnome-common gtk-doc-tools libglib2.0-dev libgtk2.0-dev libgconf2-dev
sudo apt-get install -y python-gtk2 python-gtk2-dev python-vte glade python-glade2
sudo apt-get install -y python-vte python-gconf python-appindicator
sudo apt-get install -y notify-osd libutempter0 glade-gtk2
if [[ -f Makefile ]]; then
make clean
fi
./autogen.sh
fi
make || exit 1
if [[ $EXEC_UPDATE_PO == true ]]; then
cd po
make update-po || exit 1
make || exit 1
cd ..
fi
if [[ $NO_INSTALL == true ]]; then
gconftool-2 --install-schema-file=data/guake.schemas
PYTHONPATH=src python src/guake/main.py --no-startup-script
else
sudo make install && gconftool-2 --install-schema-file=/usr/local/etc/gconf/schemas/guake.schemas || exit 1
guake --quit 2> /dev/null
guake --no-startup-script
fi