Updated EFL to svn rev38480 and added new package Eina (which
[maemo-efl] / trunk / scripts / build.sh
index 898c689..c75296f 100755 (executable)
@@ -1,17 +1,17 @@
 #!/bin/sh
 
 components=$*
-[ -z "$components" ] && components="eet evas ecore embryo edje python-evas python-ecore python-edje"
+[ -z "$components" ] && components="eina eet evas ecore embryo edje python-evas python-ecore python-edje"
 
 export SBOX_DEFAULT_AUTOMAKE=1.8
 
 for build_variant in n770 n8x0 ; do
        echo "===== building packages for $build_variant ====="
-       for component in $components ; do 
+       for component in $components ; do
                echo "===== $component: preparing sources ====="
                rm -rf ./$component
                svn export https://garage.maemo.org/svn/maemo-efl/trunk/$component
-               
+
                # Unpacking original tarball
                cd $component
                tar -zxf ../${component}_*.orig.tar.gz --strip-path 1 || exit
@@ -29,16 +29,18 @@ for build_variant in n770 n8x0 ; do
                PKG_VER=`dpkg-parsechangelog | sed -n 's/Version: //p'`
                NEW_VER=`echo $PKG_VER | sed "s/\($PKG_VER\)/\1.$build_variant/"`
                sed -ie "s/$PKG_VER.*)/$NEW_VER)/" debian/changelog
-               rm -f debian/changeloge
+               rm -f debian/changelog
 
                echo "===== $component: building for $build_variant ====="
-               
+
                # FIXME: install build dependencies here
-               DEB_BUILD_OPTIONS=$build_variant dpkg-buildpackage -rfakeroot -us -uc -sa -D || exit
-               
+               DEB_BUILD_OPTIONS=$build_variant dpkg-buildpackage -rfakeroot -us -uc -sa -d || exit
+
                # install results
+               srcname=`grep Source: debian/control |cut -f2 -d' '`
                grep '^ [a-f0-9]\+ [0-9]\+ [a-z]\+ [a-z]\+ .\+.deb' \
-                       ../${component}_${NEW_VER}_*.changes | cut -f6 -d' '|sed -e 's/^/..\//' | xargs fakeroot dpkg -i || exit
+                       ../${srcname}_${NEW_VER}_*.changes | cut -f6 -d' '|sed -e 's/^/..\//' \
+                               | xargs fakeroot dpkg -i || exit
        done
        cd ..
 done