]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
Add a tool to automate releasing new versions v0.4.0
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 28 May 2013 18:10:05 +0000 (15:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 28 May 2013 18:13:11 +0000 (15:13 -0300)
This small script automates the process of building newer
versions of the tool.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
new_ver.sh [new file with mode: 0755]

diff --git a/new_ver.sh b/new_ver.sh
new file mode 100755 (executable)
index 0000000..591b062
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+autoreconf && ./configure
+
+VER="`perl -ne 'print "$1\n" if (/Version:\s*(.*)/);' misc/rasdaemon.spec`"
+if [ "x$VER" == "x" ]; then
+       echo "Can't parse rasdaemon version"
+       exit -1
+fi
+echo
+echo "************************************************************************"
+echo "Building RPM files for version: $VER"
+echo "************************************************************************"
+echo
+make -j1 dist-bzip2 && make -j1 dist-rpm && git tag v$VER -f && git push --tags fedorahosted && make upload && git push --tags