From 92d9fcd2ee91c2fd992274adbae188e235a47d13 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Mon, 16 Jul 2007 15:21:03 -0500 Subject: [PATCH] Removed this, not used anyway --- moo/mooutils/xml2h.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 moo/mooutils/xml2h.py diff --git a/moo/mooutils/xml2h.py b/moo/mooutils/xml2h.py deleted file mode 100755 index d4cc26fe..00000000 --- a/moo/mooutils/xml2h.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env python -import sys - -if not sys.argv[2:]: - print 'usage: %s ' % (sys.argv[0],) - sys.exit(1) - -if sys.argv[1] == '--txt': - line_term = '\\n' - VARNAME, INPUT = sys.argv[2:] -else: - line_term = '' - VARNAME, INPUT = sys.argv[1:] - -file = open(INPUT, "r") - -sys.stdout.write('static const char %s[] = \"\"\n' % (VARNAME,)) - -for line in file: - line = line[:-1] - line = '"' + line.replace('"', '\\"') + line_term + '"\n' - sys.stdout.write(line) - -sys.stdout.write(';\n')