diff options
author | Martin Mares <mj@ucw.cz> | 2014-11-10 15:01:01 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2014-11-10 15:01:01 +0100 |
commit | 0e5564d9cc1f830aa03bf0496e6f7d7ad4d354bd (patch) | |
tree | 6462c166aad578c807929f248ecb6b65a884a7f5 | |
parent | 1481a1ca2b148b9a08a49b33210054116640aac4 (diff) | |
download | pciutils-0e5564d9cc1f830aa03bf0496e6f7d7ad4d354bd.tar.gz |
Maintenance scripts now upload to kernel.org automatically
-rw-r--r-- | maint/KORG-NOTES | 4 | ||||
-rw-r--r-- | maint/RELEASE | 14 | ||||
-rwxr-xr-x | maint/release | 16 |
3 files changed, 28 insertions, 6 deletions
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.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 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 (<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 $?; +} |