Compare commits

...

2 Commits

Author SHA1 Message Date
Libor Pechacek 837009c869 v1.5.8 release
Signed-off-by: Libor Pechacek <lpechacek@suse.com>
8 years ago
Libor Pechacek 3d188f68a5 Add script to set version string at multiple places
Signed-off-by: Libor Pechacek <lpechacek@suse.com>
8 years ago

@ -1,3 +1,12 @@
============================================================
Cpuset 1.5.8 (March 7, 2016)
https://github.com/lpechacek/cpuset
http://download.opensuse.org/repositories/home:/LPechacek:/cpuset-release/
Maintenance update to 1.5.8 includes following fixes:
* Fix version string at multiple places
============================================================
Cpuset 1.5.7 (January 13, 2016)
https://github.com/lpechacek/cpuset

@ -16,7 +16,7 @@
# norootforbuild
Name: cpuset
Version: 1.5.6
Version: 1.5.8
Release: 1
License: GPL-2.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build

@ -16,4 +16,4 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
version = '1.5.6'
version = '1.5.8'

@ -1,7 +1,7 @@
cset-proc(1)
============
Alex Tsariounov <alext@novell.com>
v1.5.6, June 2011
v1.5.8, March 2016
NAME
----

@ -1,7 +1,7 @@
cset-set(1)
===========
Alex Tsariounov <alext@novell.com>
v1.5.6, June 2011
v1.5.8, March 2016
NAME
----

@ -1,7 +1,7 @@
cset-shield(1)
==============
Alex Tsariounov <alext@novell.com>
v1.5.6, June 2011
v1.5.8, March 2016
NAME
----

@ -1,7 +1,7 @@
cset(1)
======
Alex Tsariounov <alext@novell.com>
v1.5.6, June 2011
v1.5.8, March 2016
NAME
----

@ -2,7 +2,7 @@ Cpuset (cset) Tutorial
======================
Alex Tsariounov <alext@novell.com> +
Copyright (c) 2009-2011 Novell Inc., cset v1.5.6 +
Copyright (c) 2009-2011 Novell Inc., cset v1.5.8 +
Verbatim copying and distribution of this entire article are permitted
worldwide, without royalty, in any medium, provided this notice is preserved.

@ -0,0 +1,24 @@
#!/bin/bash
VER=${1:?Provide version sring on command line}
DATE=$(TZ=UTC LOCALE=C date '+%B %e, %Y')
DATE_SHORT=$(TZ=UTC LOCALE=C date '+%B %Y')
sed -i "4s/.*/v$VER, $DATE_SHORT/" doc/cset{,-proc,-set,-shield}.txt
sed -i "s/cset v\([[:digit:]]\+\.\)\+[[:digit:]]\+ /cset v$VER /" doc/tutorial.txt
sed -i "s/^\(Version:[[:space:]]*\).*/\1$VER/" cpuset.spec
sed -i "s/^\(version = '*\).*\('[[:space:]]*$\)/\1$VER\2/" cpuset/version.py
sed -i "1i \
============================================================\n\
Cpuset $VER ($DATE)\n\
https://github.com/lpechacek/cpuset\n\
http://download.opensuse.org/repositories/home:/LPechacek:/cpuset-release/\n\
\n
" NEWS
${EDITOR:-vi} NEWS
TEMP=$(mktemp)
sed '6,/^===/{/^=/d;p};d' NEWS > $TEMP
git commit -s -t $TEMP cpuset.spec cpuset/version.py NEWS \
doc/cset{,-proc,-set,-shield}.txt doc/tutorial.txt
rm -f $TEMP
git tag v$VER
Loading…
Cancel
Save