Added experimental support to python-elementary
[maemo-efl] / trunk / scripts / gen-deb-src.sh
index b4e46ff..292506b 100755 (executable)
@@ -2,12 +2,32 @@
 
 E_BASE_REPO="http://svn.enlightenment.org/svn/e/trunk"
 E_PYTHON_REPO="$E_BASE_REPO/BINDINGS/python"
-E_SVN_REV="41038"
+E_SVN_REV="41533"
 
 TMP_DIR="maemo-efl-deb-src-$E_SVN_REV"
 VERSIONS_DIR="$TMP_DIR/versions"
 
-ALL_MODULES="eina eet evas ecore embryo edje epsilon etk e_dbus efl-core python-evas python-ecore python-edje python-epsilon python-etk python-e_dbus python-efl_utils python-efl-core"
+ALL_MODULES=("eina"
+             "eet"
+             "evas"
+             "ecore"
+             "embryo"
+             "edje"
+             "epsilon"
+             "etk"
+             "e_dbus"
+             "efl-core"
+             "python-evas"
+             "python-ecore"
+             "python-edje"
+             "python-epsilon"
+             "python-etk"
+             "python-e_dbus"
+             "python-efl_utils"
+             "python-efl-core")
+
+ALL_MODULES+=("elementary"
+              "python-elementary")
 
 MAEMO_REV="maemo1"
 MAEMO_REPO="extras-devel"
@@ -32,11 +52,13 @@ init(){
 
 checkout_repositories(){
     echo "Checking out repositories ..."
-    for module in $ALL_MODULES;do
+    for module in ${ALL_MODULES[@]};do
         echo -n "      $module"
 
                REPO=$E_BASE_REPO
                REV="-r$E_SVN_REV "
+               echo -n $module | grep elementary > /dev/null 2>&1 && REPO="$E_BASE_REPO/TMP/st"
+               echo -n $module | grep ethumb > /dev/null 2>&1 && REPO="$E_BASE_REPO/PROTO"
                echo -n $module | grep python > /dev/null 2>&1 && REPO=$E_PYTHON_REPO
                echo -n $module | grep efl-core > /dev/null 2>&1 && cp -r $module $TMP_DIR && echo " ... OK" && continue
 
@@ -57,7 +79,7 @@ checkout_repositories(){
 
 update_changelogs(){
        echo "Updating changelogs ..."
-    for module in $ALL_MODULES;do
+    for module in ${ALL_MODULES[@]};do
         echo -n "      $module "
 
         echo -n $module | grep -v python | grep -v efl-core > /dev/null 2>&1 && VERSION=`grep AC_INIT $TMP_DIR/$module/configure.ac | cut -d[ -f3 | cut -d] -f1 || exit_error`
@@ -80,7 +102,7 @@ gen_versions(){
     fi
 
     echo "Generating version files ..."
-    for module in $ALL_MODULES;do
+    for module in ${ALL_MODULES[@]};do
         VERSION=`dpkg-parsechangelog -l$TMP_DIR/$module/debian/changelog | grep Version: | cut -d" " -f2 || exit_error`
         echo " $module ... $VERSION"
         echo "$VERSION" > $VERSIONS_DIR/"$module"_version
@@ -89,7 +111,7 @@ gen_versions(){
 
 gen_control(){
     echo "Generating control files ..."
-    for module in $ALL_MODULES; do
+    for module in ${ALL_MODULES[@]}; do
         echo -n "      $module ..."
         if [ -e $TMP_DIR/$module/debian/control.in ]; then
             TO_REPLACE=`grep -o -E '@([A-Z]|[0-9])+((-|_)*([A-Z]|[0-9]))*_VERSION@' $TMP_DIR/$module/debian/control.in | cut -d @ -f 2 | sort -u`
@@ -115,11 +137,11 @@ gen_control(){
 
 gen_src_packages(){
     echo "Generating source packages ..."
-    for module in $ALL_MODULES; do
+    for module in ${ALL_MODULES[@]}; do
         echo -n "      $module ."
         cd $TMP_DIR/$module || exit_error
         echo -n "."
-        dpkg-buildpackage -rfakeroot -us -uc -D -sa -S -I.git -I.gitignore -I.svn -I.svnignore -ICVS -I.cvsignore > /dev/null 2>&1|| exit_error
+        dpkg-buildpackage -rfakeroot -us -uc -sa -d -S -I.git -I.gitignore -I.svn -I.svnignore -ICVS -I.cvsignore > /dev/null 2>&1|| exit_error
         echo -n "."
         cd - > /dev/null 2>&1 || exit_error
         echo " OK"