3 # This little script builds an appropriately-versioned .deb file depending
7 # For 770 (-mcpu=arm926ej-s), the version is suffixed with "-OS2006".
10 # For N800 and 770 (-mcpu=arm1136jf-s), the version is suffixed with "-OS2007".
13 # For N800 and N810, the version is suffixed with "-OS2008".
15 CHANGELOG=`dirname $0`/debian/changelog
19 CFLAGS="-O2 -pipe -mcpu=arm1136jf-s"
20 VERSION_SUFFIX=-OS2008
24 CFLAGS="-O2 -pipe -mcpu=arm926ej-s"
25 VERSION_SUFFIX=-OS2007
29 CFLAGS="-O2 -pipe -mcpu=arm926ej-s"
30 VERSION_SUFFIX=-OS2006
34 echo "Give one of OS2006, OS2007 or OS2008 as parameter"
42 head -n 1 $CHANGELOG.in | sed "s/)/$VERSION_SUFFIX)/" > $CHANGELOG
43 awk 'NR>1 {print}' $CHANGELOG.in >> $CHANGELOG
45 dpkg-buildpackage -rfakeroot -I.git $DBP_EXTRA