Removed from debian_chinook/
[maemo-efl] / trunk / scripts / build.sh
index 898c689..1d1e52f 100755 (executable)
@@ -37,8 +37,10 @@ for build_variant in n770 n8x0 ; do
                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