-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
402 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
project = "pkgbuilder" | ||
aurcat = "16" | ||
|
||
task :default => [:help] | ||
|
||
task :help do | ||
puts "Usage: rake [update/docs/docshtml/docszip]" | ||
end | ||
|
||
task :docshtml do | ||
sh "cd docs && sphinx-build -b dirhtml -d ./_build/doctrees . ./html" | ||
end | ||
|
||
task :docszip do | ||
sh "cd docs/html/ && zip -r ../docs-#{project}.zip ./*" | ||
end | ||
|
||
task :docs do | ||
Rake::Task[:docshtml].invoke | ||
Rake::Task[:docszip].invoke | ||
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') | ||
|
||
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" | ||
|
||
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" | ||
|
||
sh "tar -czvf /tmp/#{project}-#{version}-1.src.tar.gz PKGBUILD" | ||
sh "aurploader /tmp/#{project}-#{version}-1.src.tar.gz" | ||
|
||
puts "Done. Please upload the docs tarball to PyPI." | ||
end |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
===================== | ||
README for PKGBUILDer | ||
===================== | ||
:Info: This is the README file for PKGBUILDer. | ||
:Author: Kwpolska <[email protected]> | ||
:Date: 2011-09-24 | ||
:Version: 2.1.1.2 | ||
|
||
PKGBUILDer. A Python AUR helper/library. | ||
========================================= | ||
|
||
PURPOSE | ||
------- | ||
Building and installing AUR packages. | ||
|
||
INSTALLATION | ||
------------ | ||
Copy pkgbuilder.py to /usr/bin or ~/bin. You need to install | ||
pyalpm from [extra] and python3-aur from the AUR. | ||
|
||
NOTES | ||
----- | ||
This is Version 2 of PKGBUILDer. The original Perl version is included, | ||
but it shall not be used. | ||
|
||
Version 2.1 is a big leap forward. It introduces many new features. | ||
It is now stable. It is now available as an AUR and PyPI package. | ||
|
||
The -S (DS.pacman) parameter adds pacman wrapper compatibility. | ||
|
||
For more info, refer to the pkgbuilder(8) man page or HTML docs in | ||
docs/html. | ||
|
||
COPYRIGHT | ||
--------- | ||
Copyright (C) 2011, Kwpolska | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, | ||
this list of conditions, and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions, and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
* Neither the name of the author of this software nor the name of | ||
contributors to this software may be used to endorse or promote products | ||
derived from this software without specific prior written consent. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
POSSIBILITY OF SUCH DAMAGE. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ff0290a11e8b31c67cb10aaf924d6ab8 | ||
config: 42e105a34029085cabb7716af3127781 | ||
tags: fbb0d17656682115ca4d033fb2f83ba1 |
Oops, something went wrong.