From 0e5564d9cc1f830aa03bf0496e6f7d7ad4d354bd Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 10 Nov 2014 15:01:01 +0100 Subject: Maintenance scripts now upload to kernel.org automatically --- maint/KORG-NOTES | 4 ---- maint/RELEASE | 14 ++++++++++++++ maint/release | 16 ++++++++++++++-- 3 files changed, 28 insertions(+), 6 deletions(-) delete mode 100644 maint/KORG-NOTES create mode 100644 maint/RELEASE diff --git a/maint/KORG-NOTES b/maint/KORG-NOTES deleted file mode 100644 index 786ef42..0000000 --- a/maint/KORG-NOTES +++ /dev/null @@ -1,4 +0,0 @@ -# Notes for uploading on kernel.org -gzip -d 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 index 0000000..a36e264 --- /dev/null +++ b/maint/RELEASE @@ -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. diff --git a/maint/release b/maint/release index 6dc1f09..a64618f 100755 --- a/maint/release +++ b/maint/release @@ -14,8 +14,8 @@ while () { } print "API version is $apiver ... "; ; -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 " "; ; + system '/home/mj/tree/kup/kup', 'put', "$dd/$pkg.tar", "$dd/$pkg.tar.sig", "/pub/software/utils/pciutils/$pkg.tar.gz"; die if $?; +} -- cgit v1.2.1