summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'diff-gitolite-conf-against-repositories-xml')
-rwxr-xr-xdiff-gitolite-conf-against-repositories-xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/diff-gitolite-conf-against-repositories-xml b/diff-gitolite-conf-against-repositories-xml
new file mode 100755
index 0000000..73bf925
--- /dev/null
+++ b/diff-gitolite-conf-against-repositories-xml
@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+# Copyright (C) 2010 Gentoo Foundation
+# Written by Sebastian Pipping <sping@gentoo.org>
+#
+# Licensed under GPL v2 or later
+
+def add_module_path():
+ import inspect
+ import os
+ import sys
+ self_dir = os.path.dirname(inspect.getfile(sys._getframe(0)))
+ if os.path.exists(os.path.join(self_dir, 'setup.py')):
+ # Allow running from source dir
+ sys.path.insert(0, os.path.join(self_dir, 'modules'))
+
+add_module_path()
+from laymandbtools.gitoliteextractor import main
+
+main()