Skip to content

Commit

Permalink
yet another update, 2.1.1.3
Browse files Browse the repository at this point in the history
Signed-off-by: Kwpolska <[email protected]>
  • Loading branch information
Kwpolska committed Oct 5, 2011
1 parent 0d426b3 commit 17dd410
Show file tree
Hide file tree
Showing 29 changed files with 160 additions and 98 deletions.
4 changes: 2 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maintainer: Kwpolska <[email protected]>
pkgname=pkgbuilder
pkgver=2.1.1.1
pkgver=2.1.1.3
pkgrel=1
pkgdesc="A basic Python AUR helper/library."
arch=('any')
Expand All @@ -9,7 +9,7 @@ license=('BSD')
depends=('python' 'pyalpm' 'python-pyparsing')
options=(!emptydirs)
source=("http://pypi.python.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('be6d2f31b0a13c7af4e0b1f88f1d0d2b')
md5sums=('82b4e53c06518dae8956ad8f794340f6')

package() {
cd "${srcdir}/${pkgname}-${pkgver}"
Expand Down
82 changes: 64 additions & 18 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,38 @@ aurcat = "16"
task :default => [:help]

task :help do
puts "Usage: rake [update/docs/docshtml/docszip]"
puts "Usage: rake command"
puts "Command is one of:"
puts " update Updates the package."
puts " docs Creates the docs."
puts ""
puts " prepare Prepares the package for being updated."
puts " pypi Creates and uploads the package to pypi."
puts " aur Uploads an AUR tarball."
puts " docshtml Creates the docs in HTML."
puts " docszip Zips the docs made by docshtml."

end

task :prepare, :ver do |t, args|
if args[:ver].to_s.chomp == ''
puts "Version number?"
version = STDIN.gets.chomp
else
version = args[:ver].chomp
end

date = Time.now.strftime('%Y-%m-%d')

sh "sed \"s/version=.*/version='#{version}',/\" setup.py -i"
sh "sed \"s/release = .*/release = '#{version}'/\" docs/conf.py -i"
sh "sed \"s/:Version: .*/:Version: #{version}/\" docs/*.rst -i"
sh "sed \"s/BUILDer .* do/BUILDer #{version} do/\" docs/index.rst -i"
sh "sed \"s/VERSION = .*/VERSION = '#{version}'/\" pkgbuilder.py -i"
sh "sed \"s/Version .*/Version #{version}/\" pkgbuilder.py -i"
sh "sed \"s/pkgver=.*/pkgver=#{version}/\" PKGBUILD -i"

sh "sed \"s/:Date: .*/:Date: #{date}/\" docs/*.rst -i"
end

task :docshtml do
Expand All @@ -16,37 +47,52 @@ task :docszip do
end

task :docs do
sh "rm docs/pkgbuilder.8.gz"
sh "rst2man docs/pkgbuilder.rst > docs/pkgbuilder.8"
sh "gzip docs/pkgbuilder.8"

Rake::Task[:docshtml].invoke
Rake::Task[:docszip].invoke
end

task :update, :ver do |t, args|
task :pypi do
sh './setup.py sdist upload'
end

task :aur, :ver do |t, args|
if args[:ver].to_s.chomp == ''
puts "Version number?"
version = STDIN.gets.chomp
else
version = args[:ver].chomp
end
date = Time.now.strftime('%Y-%m-%d')

sh "sed \"s/version=.*/version='#{version}',/\" setup.py -i"
sh "sed \"s/release = .*/release = '#{version}'/\" docs/conf.py -i"
sh "sed \"s/:Version: .*/:Version: #{version}/\" docs/*.rst -i"
sh "sed \"s/:Date: .*/:Date: #{date}/\" docs/*.rst -i"
sh "rm docs/pkgbuilder.8.gz"
sh "rst2man docs/pkgbuilder.rst > docs/pkgbuilder.8"
sh "gzip docs/pkgbuilder.8"
pbdir = "/tmp/#{project}-pkgbuild-#{version}"
sh "mkdir -p #{pbdir}"
sh "cp PKGBUILD #{pbdir}"
md5out = `cd #{pbdir} && makepkg -cg`
md5sums = md5out.split('\n').reverse[0].chomp!
sh "sed \"s/md5sums=.*/#{md5sums}/\" PKGBUILD -i"
sh "cp PKGBUILD #{pbdir}"
sh "cd #{pbdir} && makepkg -f --source"
sh "aurupload Kwpolska - system #{pbdir}/*.src.tar.gz"

Rake::Task[:docs].invoke

sh './setup.py sdist upload'
md5sum = `md5sum "dist/#{project}-#{version}.tar.gz"`
md5sum.chomp!
md5sum.sub!(" dist/#{project}-#{version}.tar.gz", "")
sh "sed \"s/md5sums=.*/md5sums=('#{md5sum}')/\" PKGBUILD -i"
end

task :update, :ver do |t, args|
if args[:ver].to_s.chomp == ''
puts "Version number?"
version = STDIN.gets.chomp
else
version = args[:ver].chomp
end
#date = Time.now.strftime('%Y-%m-%d')

Rake::Task[:prepare].invoke(version)

sh "tar -czvf /tmp/#{project}-#{version}-1.src.tar.gz PKGBUILD"
sh "aurploader /tmp/#{project}-#{version}-1.src.tar.gz"
Rake::Task[:docs].invoke(version)

Rake::Task[:pypi].invoke(version)
puts "Done. Please upload the docs tarball to PyPI."
end
Binary file modified dist/pkgbuilder-2.1.1.2.tar.gz
Binary file not shown.
Binary file added dist/pkgbuilder-2.1.1.3.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ README for PKGBUILDer
=====================
:Info: This is the README file for PKGBUILDer.
:Author: Kwpolska <[email protected]>
:Date: 2011-09-24
:Version: 2.1.1.2
:Date: 2011-10-04
:Version: 2.1.1.3

PKGBUILDer. A Python AUR helper/library.
=========================================
Expand Down
Binary file modified docs/_build/doctrees/README.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/messagecodes.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/pkgbuilder.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# The short X.Y version.
version = '2.1'
# The full version, including alpha/beta/rc tags.
release = '2.1.1.2'
release = '2.1.1.3'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
Binary file modified docs/docs-pkgbuilder.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 42e105a34029085cabb7716af3127781
config: b980e1a36903d7b6497827440dd27e80
tags: fbb0d17656682115ca4d033fb2f83ba1
16 changes: 8 additions & 8 deletions docs/html/README/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>README for PKGBUILDer &mdash; PKGBUILDer v2.1.1.2 documentation</title>
<title>README for PKGBUILDer &mdash; PKGBUILDer v2.1.1.3 documentation</title>
<link rel="stylesheet" href="../_static/default.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '2.1.1.2',
VERSION: '2.1.1.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '',
HAS_SOURCE: true
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="top" title="PKGBUILDer v2.1.1.2 documentation" href="../" />
<link rel="top" title="PKGBUILDer v2.1.1.3 documentation" href="../" />
<link rel="next" title="Appendix B. PKGBUILDer message numbers list" href="../messagecodes/" />
<link rel="prev" title="PKGBUILDer" href="../pkgbuilder/" />
</head>
Expand All @@ -36,7 +36,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../pkgbuilder/" title="PKGBUILDer"
accesskey="P">previous</a> |</li>
<li><a href="../">PKGBUILDer v2.1.1.2 documentation</a> &raquo;</li>
<li><a href="../">PKGBUILDer v2.1.1.3 documentation</a> &raquo;</li>
</ul>
</div>

Expand All @@ -55,9 +55,9 @@ <h1>README for PKGBUILDer<a class="headerlink" href="#readme-for-pkgbuilder" tit
</tr>
<tr class="field"><th class="field-name">Author:</th><td class="field-body">Kwpolska &lt;<a class="reference external" href="mailto:kwpolska&#37;&#52;&#48;kwpolska&#46;tk">kwpolska<span>&#64;</span>kwpolska<span>&#46;</span>tk</a>&gt;</td>
</tr>
<tr class="field"><th class="field-name">Date:</th><td class="field-body">2011-09-24</td>
<tr class="field"><th class="field-name">Date:</th><td class="field-body">2011-10-04</td>
</tr>
<tr class="field"><th class="field-name">Version:</th><td class="field-body">2.1.1.2</td>
<tr class="field"><th class="field-name">Version:</th><td class="field-body">2.1.1.3</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -167,12 +167,12 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../pkgbuilder/" title="PKGBUILDer"
>previous</a> |</li>
<li><a href="../">PKGBUILDer v2.1.1.2 documentation</a> &raquo;</li>
<li><a href="../">PKGBUILDer v2.1.1.3 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2011, Kwpolska.
Last updated on 2011-09-24T15:09:25Z.
Last updated on 2011-10-04T20:10:23Z.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/html/_sources/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ README for PKGBUILDer
=====================
:Info: This is the README file for PKGBUILDer.
:Author: Kwpolska <[email protected]>
:Date: 2011-09-24
:Version: 2.1.1.2
:Date: 2011-10-04
:Version: 2.1.1.3

PKGBUILDer. A Python AUR helper/library.
=========================================
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_sources/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

PKGBUILDer 2.1.1.1 documentation
PKGBUILDer 2.1.1.3 documentation
================================

Contents:
Expand Down
4 changes: 2 additions & 2 deletions docs/html/_sources/messagecodes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Appendix B. PKGBUILDer message numbers list
===========================================
:Info: This is an appendix to the PKGBUILDer documentation.
:Author: Kwpolska <[email protected]>
:Date: 2011-09-24
:Version: 2.1.1.2
:Date: 2011-10-04
:Version: 2.1.1.3

In order to help debugging, messages are numbered.
Each message number has four digits: the first one is the
Expand Down
4 changes: 2 additions & 2 deletions docs/html/_sources/pkgbuilder.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ a Python AUR helper/library

:Author: Kwpolska <[email protected]>
:Copyright: This document has been placed in the public domain.
:Date: 2011-09-24
:Version: 2.1.1.2
:Date: 2011-10-04
:Version: 2.1.1.3
:Manual section: 8
:Manual group: PKGBUILDer manual

Expand Down
16 changes: 8 additions & 8 deletions docs/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>PKGBUILDer 2.1.1.1 documentation &mdash; PKGBUILDer v2.1.1.2 documentation</title>
<title>PKGBUILDer 2.1.1.3 documentation &mdash; PKGBUILDer v2.1.1.3 documentation</title>
<link rel="stylesheet" href="_static/default.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '2.1.1.2',
VERSION: '2.1.1.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '',
HAS_SOURCE: true
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="PKGBUILDer v2.1.1.2 documentation" href="#" />
<link rel="top" title="PKGBUILDer v2.1.1.3 documentation" href="#" />
<link rel="next" title="PKGBUILDer" href="pkgbuilder/" />
</head>
<body>
Expand All @@ -32,7 +32,7 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="pkgbuilder/" title="PKGBUILDer"
accesskey="N">next</a></li>
<li><a href="#">PKGBUILDer v2.1.1.2 documentation</a> &raquo;</li>
<li><a href="#">PKGBUILDer v2.1.1.3 documentation</a> &raquo;</li>
</ul>
</div>

Expand All @@ -41,8 +41,8 @@ <h3>Navigation</h3>
<div class="bodywrapper">
<div class="body">

<div class="section" id="pkgbuilder-2-1-1-1-documentation">
<h1>PKGBUILDer 2.1.1.1 documentation<a class="headerlink" href="#pkgbuilder-2-1-1-1-documentation" title="Permalink to this headline"></a></h1>
<div class="section" id="pkgbuilder-2-1-1-3-documentation">
<h1>PKGBUILDer 2.1.1.3 documentation<a class="headerlink" href="#pkgbuilder-2-1-1-3-documentation" title="Permalink to this headline"></a></h1>
<p>Contents:</p>
<div class="toctree-wrapper compound">
<ul>
Expand Down Expand Up @@ -97,12 +97,12 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="pkgbuilder/" title="PKGBUILDer"
>next</a></li>
<li><a href="#">PKGBUILDer v2.1.1.2 documentation</a> &raquo;</li>
<li><a href="#">PKGBUILDer v2.1.1.3 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2011, Kwpolska.
Last updated on 2011-09-24T15:09:25Z.
Last updated on 2011-10-04T20:10:23Z.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
</div>
</body>
Expand Down
16 changes: 8 additions & 8 deletions docs/html/messagecodes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Appendix B. PKGBUILDer message numbers list &mdash; PKGBUILDer v2.1.1.2 documentation</title>
<title>Appendix B. PKGBUILDer message numbers list &mdash; PKGBUILDer v2.1.1.3 documentation</title>
<link rel="stylesheet" href="../_static/default.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '2.1.1.2',
VERSION: '2.1.1.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '',
HAS_SOURCE: true
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="top" title="PKGBUILDer v2.1.1.2 documentation" href="../" />
<link rel="top" title="PKGBUILDer v2.1.1.3 documentation" href="../" />
<link rel="prev" title="README for PKGBUILDer" href="../README/" />
</head>
<body>
Expand All @@ -32,7 +32,7 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../README/" title="README for PKGBUILDer"
accesskey="P">previous</a></li>
<li><a href="../">PKGBUILDer v2.1.1.2 documentation</a> &raquo;</li>
<li><a href="../">PKGBUILDer v2.1.1.3 documentation</a> &raquo;</li>
</ul>
</div>

Expand All @@ -51,9 +51,9 @@ <h1>Appendix B. PKGBUILDer message numbers list<a class="headerlink" href="#appe
</tr>
<tr class="field"><th class="field-name">Author:</th><td class="field-body">Kwpolska &lt;<a class="reference external" href="mailto:kwpolska&#37;&#52;&#48;kwpolska&#46;tk">kwpolska<span>&#64;</span>kwpolska<span>&#46;</span>tk</a>&gt;</td>
</tr>
<tr class="field"><th class="field-name">Date:</th><td class="field-body">2011-09-24</td>
<tr class="field"><th class="field-name">Date:</th><td class="field-body">2011-10-04</td>
</tr>
<tr class="field"><th class="field-name">Version:</th><td class="field-body">2.1.1.2</td>
<tr class="field"><th class="field-name">Version:</th><td class="field-body">2.1.1.3</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -331,12 +331,12 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../README/" title="README for PKGBUILDer"
>previous</a></li>
<li><a href="../">PKGBUILDer v2.1.1.2 documentation</a> &raquo;</li>
<li><a href="../">PKGBUILDer v2.1.1.3 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2011, Kwpolska.
Last updated on 2011-09-24T15:09:25Z.
Last updated on 2011-10-04T20:10:23Z.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
</div>
</body>
Expand Down
Loading

0 comments on commit 17dd410

Please sign in to comment.