Description: Add main function
 This is needed so that we can call the program from a
 wrapper.
Author: Raphael Hertzog <hertzog@debian.org>
Forwarded-Upstream: no (no clear upstream)

--- a/trml2pdf/trml2pdf.py
+++ b/trml2pdf/trml2pdf.py
@@ -549,7 +549,7 @@ def trml2pdf_help():
 	print 'Render the standard input (RML) and output a PDF file'
 	sys.exit(0)
 
-if __name__=="__main__":
+def main():
 	if len(sys.argv)>1:
 		if sys.argv[1]=='--help':
 			trml2pdf_help()
@@ -557,3 +557,6 @@ if __name__=="__main__":
 	else:
 		print 'Usage: trml2pdf input.rml >output.pdf'
 		print 'Try \'trml2pdf --help\' for more information.'
+
+if __name__=="__main__":
+    main()
