aboutsummaryrefslogtreecommitdiff
blob: 9f287548deb4217c3ba84b4b35adde2366b26d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
OLDVERS="$(grep '^Version' README | awk '{ print $2 }')"
NEWVERS="$1"

echo "Updating from $OLDVERS to $NEWVERS"

if [ -z "${NEWVERS}" ]; then
	echo "Please specify new version"
	exit 1
fi

sed -e "s/^Version.*/Version ${NEWVERS}/" -i README

today=$(LC_ALL=C date +"%d %b %Y")

sed -e "3a\\
*gentoo-vdr-scripts-${NEWVERS} (${today})\\
" -i ChangeLog

echo "local bump"
git commit -s -m "proj/gentoo-vdr-scripts: Bumped to version ${NEWVERS}" ChangeLog README

#git tag gentoo-vdr-scripts-$NEWVERS
#git push --signed=yes origin :gentoo-vdr-scripts-$NEWVERS

#make dist