From: Kaj-Michael Lang Date: Thu, 10 Jan 2008 16:40:04 +0000 (+0200) Subject: Generate suitable changelog from changelog.in X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55059e25f11fe9282e6371cb6e91d2fa68c0e2c5;p=mapper Generate suitable changelog from changelog.in --- diff --git a/dpkg-build.sh b/dpkg-build.sh index 4669d43..2c0a65f 100755 --- a/dpkg-build.sh +++ b/dpkg-build.sh @@ -4,30 +4,30 @@ # on IT OS give. # # OS2006 -# For 770 (-mcpu=arm926ej-s), the version is suffixed with "-1". +# For 770 (-mcpu=arm926ej-s), the version is suffixed with "-OS2006". # # OS2007 -# For N800 (-mcpu=arm1136jf-s), the version is suffixed with "-2". +# For N800 and 770 (-mcpu=arm1136jf-s), the version is suffixed with "-OS2007". # # OS2008 -# For N800 and N810, the version is suffixed with "-3". +# For N800 and N810, the version is suffixed with "-OS2008". CHANGELOG=`dirname $0`/debian/changelog case "$1" in OS2008) CFLAGS="-O2 -pipe -mcpu=arm1136jf-s" - VERSION_SUFFIX=-3 + VERSION_SUFFIX=-OS2008 DBP_EXTRA=-B ;; OS2007) CFLAGS="-O2 -pipe -mcpu=arm926ej-s" - VERSION_SUFFIX=-2 + VERSION_SUFFIX=-OS2007 DBP_EXTRA=-B ;; OS2006) CFLAGS="-O2 -pipe -mcpu=arm926ej-s" - VERSION_SUFFIX=-1 + VERSION_SUFFIX=-OS2006 DBP_EXTRA=-B ;; *) @@ -37,11 +37,8 @@ esac export CFLAGS -head -n 1 $CHANGELOG | sed "s/)/$VERSION_SUFFIX)/" > $CHANGELOG.new -awk 'NR>1 {print}' $CHANGELOG >> $CHANGELOG.new -mv $CHANGELOG $CHANGELOG.old -mv $CHANGELOG.new $CHANGELOG +rm $CHANGELOG +head -n 1 $CHANGELOG.in | sed "s/)/$VERSION_SUFFIX)/" > $CHANGELOG +awk 'NR>1 {print}' $CHANGELOG.in >> $CHANGELOG dpkg-buildpackage -rfakeroot -I.git $DBP_EXTRA - -mv $CHANGELOG.old $CHANGELOG