]> piware.de Git - bin.git/commitdiff
add sbp-release
authorMartin Pitt <martin@piware.de>
Tue, 31 May 2011 05:25:04 +0000 (07:25 +0200)
committerMartin Pitt <martin@piware.de>
Tue, 31 May 2011 05:25:04 +0000 (07:25 +0200)
backup
sbp-release [new file with mode: 0755]

diff --git a/backup b/backup
index 0c1fe41a1962b6c10461bba5f54fe37b17b38566..db4faaa5a5d10b9bbd17609497ace3f9ada02455 100755 (executable)
--- a/backup
+++ b/backup
@@ -41,6 +41,6 @@ get_age weekly.0
 
 # call rsnapshot
 echo mode: $mode
-notify-send "$mode backup started" || :
+#notify-send "$mode backup started" || :
 rsnapshot -c ~/.rsnapshotrc $mode
-notify-send "$mode backup finished" || :
+#notify-send "$mode backup finished" || :
diff --git a/sbp-release b/sbp-release
new file mode 100755 (executable)
index 0000000..2a77c6b
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+V=`dpkg-parsechangelog | grep ^Version: | cut -f2- -d' '`
+D=`dpkg-parsechangelog | grep ^Distribution: | cut -f2- -d' '`
+
+svn commit -m "release $V to $D"
+svn up
+svn-buildpackage --svn-tag-only
+svn-revert debian/changelog