mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 23:28:51 -05:00
Creating a bundle of all XEP PDFs.
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@3742 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
6743cce3f3
commit
faed7f2668
12
gen.py
12
gen.py
@ -255,6 +255,16 @@ def buildAll():
|
||||
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"
|
||||
print ""
|
||||
@ -306,6 +316,8 @@ def main(argv):
|
||||
|
||||
executeCommand("rm -rfd /tmp/xepbuilder")
|
||||
|
||||
makeBundle()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main(sys.argv[1:])
|
Loading…
Reference in New Issue
Block a user