#!/bin/bash
cd raspbian-stretch/eyemagnet-monitoring-nagios-naveed
var1=$(awk 'NR==1{print $2}' debian/changelog | head -c 4 | tail -c 1)
var2=$(awk 'NR==1{print $2}' debian/changelog | head -c 2 | tail -c 1)
var3=$(($var1 + 1))
if [ $var3 -gt 9 ]
then
var2=$(($var2 + 1))
var3=0
fi
version="$var2.$var3"
echo "New version is $version"
echo
echo "Preparing package release eyemagnet-monitoring-nagios-$version"
echo
> debian/changelog
cat>>debian/changelog <<EOF
eyemagnet-monitoring-nagios ($version) unstable; urgency=medium
* Initial Release.
-- Naveed Sheikh <naveed.sheikh@eyemagnet.com> $(date -R)
EOF
dpkg-buildpackage -uc -us
rm -fr debian/eyemagnet-monitoring-nagios
exit 0
cd raspbian-stretch/eyemagnet-monitoring-nagios-naveed
var1=$(awk 'NR==1{print $2}' debian/changelog | head -c 4 | tail -c 1)
var2=$(awk 'NR==1{print $2}' debian/changelog | head -c 2 | tail -c 1)
var3=$(($var1 + 1))
if [ $var3 -gt 9 ]
then
var2=$(($var2 + 1))
var3=0
fi
version="$var2.$var3"
echo "New version is $version"
echo
echo "Preparing package release eyemagnet-monitoring-nagios-$version"
echo
> debian/changelog
cat>>debian/changelog <<EOF
eyemagnet-monitoring-nagios ($version) unstable; urgency=medium
* Initial Release.
-- Naveed Sheikh <naveed.sheikh@eyemagnet.com> $(date -R)
EOF
dpkg-buildpackage -uc -us
rm -fr debian/eyemagnet-monitoring-nagios
exit 0
No comments:
Post a Comment