]> mj.ucw.cz Git - pciutils.git/commitdiff
Maintenance scripts now upload to kernel.org automatically
authorMartin Mares <mj@ucw.cz>
Mon, 10 Nov 2014 14:01:01 +0000 (15:01 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 10 Nov 2014 14:01:01 +0000 (15:01 +0100)
maint/KORG-NOTES [deleted file]
maint/RELEASE [new file with mode: 0644]
maint/release

diff --git a/maint/KORG-NOTES b/maint/KORG-NOTES
deleted file mode 100644 (file)
index 786ef42..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-# Notes for uploading on kernel.org
-gzip -d <pciutils-3.1.10.tar.gz >pciutils-3.1.10.tar
-gpg --armor --detach-sign -o pciutils-3.1.10.tar.sig pciutils-3.1.10.tar
-~/tree/kup/kup put pciutils-3.1.10.tar.gz pciutils-3.1.10.tar.sig /pub/software/utils/pciutils/pciutils-3.1.10.tar.gz
diff --git a/maint/RELEASE b/maint/RELEASE
new file mode 100644 (file)
index 0000000..a36e264
--- /dev/null
@@ -0,0 +1,14 @@
+How to release pciutils
+~~~~~~~~~~~~~~~~~~~~~~~
+(a couple of hints for the forgetful maintainer)
+
+Check version numbers in Makefile and lib/pci.h.
+
+ssh-add ~/.ssh/id_korg
+
+maint/tag-release vX.Y.Z
+git push --tags
+
+maint/release
+
+Update progs/pciutils at Jabberwock.
index 6dc1f094956cea9589a345b5594e3a72145101f0..a64618f74439a2f66e7ac6c6b513f5989783e772 100755 (executable)
@@ -14,8 +14,8 @@ while (<X>) {
 }
 print "API version is $apiver ... <confirm> "; <STDIN>;
 
-print "Updating public GIT tree\n";
-`git push --tags public`; die if $?;
+#print "Updating public GIT tree\n";
+#`git push --tags public`; die if $?;
 
 my $r = new UCW::Release("pciutils");
 my $ver = $r->GetVersionFromFile("Makefile", "VERSION=(.*)");
@@ -44,3 +44,15 @@ if ($r->{"do_upload"}) {
        `scp -C pci.ids pciids\@jabberwock.ucw.cz:05-pciutils.new`; die if $?;
        `ssh pciids\@jabberwock.ucw.cz mv 05-pciutils.new origs/05-pciutils`; die if $?;
 }
+
+# Hacks for kernel.org
+print "Preparing kernel.org package\n";
+my $dd = $r->{"DISTDIR"};
+my $pkg = $r->{"PKG"};
+`gzip -d <$dd/$pkg.tar.gz >$dd/$pkg.tar`; die if $?;
+system "gpg", "--armor", "--detach-sig", "-o", "$dd/$pkg.tar.sig", "$dd/$pkg.tar"; die if $?;
+if ($r->{"do_upload"}) {
+       print "Uploading to kernel.org\n";
+       print "<confirm> "; <STDIN>;
+       system '/home/mj/tree/kup/kup', 'put', "$dd/$pkg.tar", "$dd/$pkg.tar.sig", "/pub/software/utils/pciutils/$pkg.tar.gz"; die if $?;
+}