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