diff options
author | 2010-11-07 04:03:25 +0100 | |
---|---|---|
committer | 2010-11-07 05:01:47 +0100 | |
commit | b3bf1814c2705e1534d696775610fa00809fd032 (patch) | |
tree | 729a03b1f5b8787f2bb966c61ac2f2525373b9a7 | |
parent | Add gitolite confing parser (diff) | |
download | repositories-xml-format-b3bf1814c2705e1534d696775610fa00809fd032.tar.gz repositories-xml-format-b3bf1814c2705e1534d696775610fa00809fd032.tar.bz2 repositories-xml-format-b3bf1814c2705e1534d696775610fa00809fd032.zip |
Move gitosis code into place of future gitolite code
-rwxr-xr-x | diff-gitolite-conf-against-repositories-xml | 19 | ||||
-rw-r--r-- | modules/laymandbtools/__init__.py | 0 | ||||
-rwxr-xr-x | modules/laymandbtools/gitoliteextractor.py (renamed from diff-gitosis-conf-against-repositories-xml.py) | 0 | ||||
-rw-r--r-- | setup.py | 0 |
4 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() diff --git a/modules/laymandbtools/__init__.py b/modules/laymandbtools/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/modules/laymandbtools/__init__.py diff --git a/diff-gitosis-conf-against-repositories-xml.py b/modules/laymandbtools/gitoliteextractor.py index 2546089..2546089 100755 --- a/diff-gitosis-conf-against-repositories-xml.py +++ b/modules/laymandbtools/gitoliteextractor.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/setup.py |