From faed7f266885ab6636ae64758a7f84b07e5cab03 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Sat, 19 Dec 2009 20:35:26 +0000 Subject: [PATCH] Creating a bundle of all XEP PDFs. git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@3742 4b5297f7-1745-476d-ba37-a9c6900126ab --- gen.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gen.py b/gen.py index 52bc3ade..32adfa9b 100755 --- a/gen.py +++ b/gen.py @@ -254,6 +254,16 @@ def buildAll(): files.sort(key=lambda x: x.lower()) for file in files: buildXEP( file ) + +def makeBundle(): + print "Creating the bundle...", + executeCommand("mkdir /tmp/xepbundle") + executeCommand("cp " + XEPPATH + "/*.pdf " + "/tmp/xepbundle") + executeCommand("tar -cf /tmp/xepbundle.tar /tmp/xepbundle") + executeCommand("pbzip2 -f -9 /tmp/xepbundle.tar") + executeCommand("mv -f /tmp/xepbundle.tar.bz2 " + XEPPATH + "/xepbundle.tar.bz2") + executeCommand("rm -rfd /tmp/xepbundle") + print "DONE" def usage(): print "gen.py: generate nice XHTML and beatuy PDF out of the XEP XML" @@ -306,6 +316,8 @@ def main(argv): executeCommand("rm -rfd /tmp/xepbuilder") + makeBundle() + if __name__ == "__main__": main(sys.argv[1:]) \ No newline at end of file