1
0
mirror of https://github.com/moparisthebest/xeps synced 2025-03-03 01:51:49 -05:00

Version bump. Accepts old calling behavior of gen.sh now.

git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@3539 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Tobias Markmann 2009-10-13 17:21:08 +00:00
parent fdbb15757d
commit 82b1633806

11
gen.py
View File

@ -1,12 +1,12 @@
#!/usr/bin/env python #!/usr/bin/env python
# File: gen.py # File: gen.py
# Version: 0.1 # Version: 0.2
# Description: a renewed XEP compilation tool # Description: a renewed XEP compilation tool
# Last Modified: 2009 # Last Modified: 2009
# Author: Tobias Markmann (tm@ayena.de) # Author: Tobias Markmann (tm@ayena.de)
# License: public domain # License: public domain
# HowTo: ./all.py # HowTo: ./gen.py xep-####.xml
## LICENSE ## ## LICENSE ##
# #
@ -287,6 +287,7 @@ def usage():
print "" print ""
print "Options:" print "Options:"
print "-v Enable verbose output for debugging." print "-v Enable verbose output for debugging."
print "-a Build all available XEPs."
def main(argv): def main(argv):
global verbose global verbose
@ -305,7 +306,11 @@ def main(argv):
buildall = True buildall = True
if len(remainder) > 0: if len(remainder) > 0:
xep = remainder[0] try:
xep = int(remainder[0])
xep = "xep-%04d.xml" % xep
except:
xep = remainder[0]
last_build = loadDict(BUILDDICT) last_build = loadDict(BUILDDICT)