changelog.sh 390 Bytes
Newer Older
Ruben Rodriguez committed
1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh

export DEBEMAIL=trisquel-devel@listas.trisquel.info
export DEBFULLNAME="Trisquel GNU/Linux developers"

CURRENTVERSION=$(head -n1 debian/changelog|sed 's/.*(//g; s/).*//g'|awk -F '-' '{print $1}')
CURRENTSUBVERSION=$(head -n1 debian/changelog|sed 's/.*(//g; s/).*//g'|awk -F '-' '{print $2}')
VERSION=$CURRENTVERSION-$(expr $CURRENTSUBVERSION + 1)

echo | dch -v $VERSION  "$*"