X-Git-Url: http://git.maemo.org/git/?p=maemo-efl;a=blobdiff_plain;f=trunk%2Fscripts%2Fgen-deb-src.sh;h=c7e30577799227db988aa8a65eb56c56449af4be;hp=b4e46ff237bbfb6e1fe6d8b2709fab900027379f;hb=e50282893b7704b74167bc3decd43a9d2e31bcc1;hpb=123a2c2c891a53cdafe1816ce5639d69c6a11cb6 diff --git a/trunk/scripts/gen-deb-src.sh b/trunk/scripts/gen-deb-src.sh index b4e46ff..c7e3057 100755 --- a/trunk/scripts/gen-deb-src.sh +++ b/trunk/scripts/gen-deb-src.sh @@ -1,13 +1,46 @@ #!/bin/bash -E_BASE_REPO="http://svn.enlightenment.org/svn/e/trunk" -E_PYTHON_REPO="$E_BASE_REPO/BINDINGS/python" -E_SVN_REV="41038" +E_BASE_REPO="http://svn.enlightenment.org/svn/e" +E_TRUNK_REPO="$E_BASE_REPO/trunk" +E_OLD_REPO="$E_BASE_REPO/OLD" +E_PYTHON_SUFIX="BINDINGS/python" +E_PYTHON_REPO="$E_TRUNK_REPO/$E_PYTHON_SUFIX" +E_OLD_PYTHON_REPO="$E_OLD_REPO/$E_PYTHON_SUFIX" +E_PROTO_REPO="$E_TRUNK_REPO/PROTO" + +[ -z $E_SVN_REV ] && E_SVN_REV="44144" 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" +# C Modules +ALL_MODULES=("eina" + "eet" + "evas" + "ecore" + "embryo" + "edje" + "epsilon" + "etk" + "e_dbus" + "emotion" + "epdf" + "ethumb" + "libeweather" + "elementary" + "efl-core") + +# Python Bindings +ALL_MODULES+=("python-evas" + "python-ecore" + "python-edje" + "python-epsilon" + "python-etk" + "python-e_dbus" + "python-ethumb" + "python-efl_utils" + "python-elementary" + "python-efl-core") MAEMO_REV="maemo1" MAEMO_REPO="extras-devel" @@ -32,13 +65,35 @@ 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 + case $module in + etk|epsilon) + REPO="$E_OLD_REPO" + ;; + python-etk|python-epsilon) + REPO="$E_OLD_PYTHON_REPO" + ;; + elementary) + REPO="$E_BASE_REPO/TMP/st" + ;; + epdf|libeweather) + REPO="$E_PROTO_REPO" + ;; + *efl-core) + cp -r $module $TMP_DIR > /dev/null 2>&1 && echo " ... OK" || exit_error + continue + ;; + python-*) + REPO="$E_PYTHON_REPO" + ;; + *) + REPO=$E_BASE_REPO + ;; + esac + REV="-r$E_SVN_REV " - 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 echo -n " ." svn co $REV $REPO/$module $TMP_DIR/$module > /dev/null 2>&1 || exit_error @@ -57,14 +112,20 @@ checkout_repositories(){ update_changelogs(){ echo "Updating changelogs ..." - 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` - echo -n "." - echo -n $module | grep python | grep -v efl-core > /dev/null 2>&1 && VERSION=`grep version $TMP_DIR/$module/setup.py | cut -d\' -f2 || exit_error` - echo -n "." - echo -n $module | grep efl-core > /dev/null 2>&1 && VERSION=`grep AC_INIT $TMP_DIR/evas/configure.ac | cut -d[ -f3 | cut -d] -f1 || exit_error` + for module in ${ALL_MODULES[@]};do + echo -n " $module .." + + case $module in + *efl-core) + VERSION=`grep AC_INIT $TMP_DIR/evas/configure.ac | cut -d[ -f3 | cut -d] -f1 || exit_error` + ;; + python-*) + VERSION=`grep version $TMP_DIR/$module/setup.py | cut -d\' -f2 || exit_error` + ;; + *) + VERSION=`grep AC_INIT $TMP_DIR/$module/configure.ac | cut -d[ -f3 | cut -d] -f1 || exit_error` + ;; + esac echo -n "." dch --force-distribution -b -c $TMP_DIR/$module/debian/changelog -v $VERSION+svn$E_SVN_REV-$MAEMO_REV -D $MAEMO_REPO "SVN snapshot release $E_SVN_REV" > /dev/null 2>&1 || exit_error @@ -80,7 +141,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 +150,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 +176,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"