167e94836d529108b55e44ed5525c4d92ce87911
[maemo-efl] / trunk / scripts / var-definitions.sh
1 #!/bin/sh
2
3 ###########################################################
4 # Maemo-efl building script
5 # Variable definitions
6 ###########################################################
7
8 __tmp_hash=`mktemp XXXXXXXX` || exit 1
9 rm -f $__tmp_hash
10
11 # Paths
12 __tmp_dir="/tmp/`whoami`_build_maemo-efl/$__tmp_hash"
13 __versions_dir="$__tmp_dir/versions"
14 __this_script=`basename $0`
15 __this_script_dir=`dirname $0`
16 __orig_path=$PATH
17 __srclist_file="/etc/apt/sources.list"
18
19 # Binaries
20 __date=`which date`
21 __git=`which git`
22 __svn=`which svn`
23 __head=`which head`
24 __mkdir=`which mkdir`
25 __sed=`which sed`
26 __uname=`which uname`
27 __chmod=`which chmod`
28 __grep=`which grep`
29 __egrep=`which egrep`
30 __debsign=`which debsign`
31 __tar=`which tar`
32 __tail=`which tail`
33 __head=`which head`
34 __dpkg_parsechangelog=`which dpkg-parsechangelog`
35
36 # svn definitions
37 __svn_checkout="$__svn co"
38 __svn_update="$__svn up"
39 __svn_repo="http://svn.enlightenment.org/svn/e/trunk/"
40
41 # git definitions
42 __git_clone="$__git clone -q"
43 __git_pull="$__git pull -q"
44 __git_clean="$__git clean -q -x -d -f"
45 __git_reset="$__git reset --hard HEAD"
46 __git_repo="git://staff.get-e.org/"
47
48 # e17 git repositories paths
49 __e17_libs="e17/libs"
50 __e17_proto="e17/proto"
51 __e17_python_efl="BINDINGS/python/"
52 __e17_python_etk="users/cmarcelo"
53 __e17_python_efl_utils="users/barbieri"
54 #__e17_python_dispatcher="users/ulisses"
55
56 # modules to build
57 #__lib_modules="edb eet evas ecore embryo edje efreet epeg epsilon emotion etk ewl e_dbus exml enhance"
58 __lib_modules="eet:evas:ecore:embryo:edje:epsilon:etk:e_dbus"
59 #__other_modules="himf-ecore:himf-ecore-chinook:lightmediascanner:python-lightmediascanner"
60 __other_modules=""
61 __python_modules="python-evas:python-ecore:python-edje:python-epsilon:python-e_dbus:python-etk"
62 __python_efl_utils_module="python-efl_utils"
63 __python_dispatcher_module="python-dispatcher"
64 __virtual_packages="efl-core:python-efl-core"
65
66 update_all_modules () {
67     __all_modules=$__lib_modules:$__other_modules:$__python_modules:$__python_efl_utils_module:$__python_dispatcher_module:$__virtual_packages
68 }
69
70 # dpkg definitions
71 __common_build_pkg_options="-rfakeroot -us -uc -D"
72
73 # Packages dirs and log file
74 __today=`$__date +%Y%m%d`
75 __base_pkg_dir="$__this_script_dir/packages_$__today"
76 __output_file="$PWD/$__base_pkg_dir/packages_$__today.log"
77
78 # Scratchbox definitions
79 __sbox_path="/scratchbox"
80
81 # Other
82 __update_repositories=1
83 __force_remove=0
84 __installed_packages=""
85 __export_dir=""
86 __not_all_pkgs=0