-for component in $components ; do
- echo "===== $component: preparing sources ====="
- rm -rf ./$component
- svn export https://garage.maemo.org/svn/maemo-efl/trunk/$component
- cd $component
- tar -zxf ../${component}_*.orig.tar.gz --strip-path 1
- PKG_VER=`dpkg-parsechangelog | sed -n 's/Version: //p'`
- for build_variant in n770 n8x0 ; do
+for build_variant in n770 n8x0 ; do
+ echo "===== building packages for $build_variant ====="
+ 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
+
+ # if this patch exists we have to patch here
+ if [ -f debian/patches/01_dont_overwrite_changelog ] ; then
+ QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null push -a -f || exit
+ if [ -f configure.in ] ; then
+ automake
+ autoconf
+ fi
+ fi
+