Skip to content

Commit b334b9f

Browse files
author
Vladimir Kotal
authored
add tools README (#2487)
fixes #2486
1 parent 2965341 commit b334b9f

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

distribution/assembly.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
<outputDirectory>tools</outputDirectory>
2525
<destName>opengrok-tools.tar.gz</destName>
2626
</file>
27+
<file>
28+
<source>${project.basedir}/../opengrok-tools/README-dist.txt</source>
29+
<outputDirectory>tools</outputDirectory>
30+
<destName>README.txt</destName>
31+
</file>
2732
<file>
2833
<source>${project.basedir}/../opengrok-tools/${project.build.directory}/dist/logging.properties.template</source>
2934
<outputDirectory>doc</outputDirectory>

opengrok-tools/README-dist.txt

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
This directory contains set of scripts to facilitate project synchronization and
3+
mirroring in a Python package.
4+
5+
The scripts require Python 3 and they rely on a binary/symlink python3 to be
6+
present that points to the latest Python 3.x version present on the system.
7+
8+
All the scripts in the package are installed with the 'opengrok-' prefix.
9+
10+
See https://github.com/oracle/opengrok/wiki/Repository-synchronization for more
11+
details.
12+
13+
The instructions below are pretty much standard way how to deal with Python
14+
packages however may come handy if you never encountered Python package before.
15+
16+
Install
17+
-------
18+
19+
* Installation on the target system so that the package is globally available:
20+
21+
Use the distribution tarball and run pip:
22+
23+
python3 -m pip install opengrok_tools.tar.gz
24+
25+
This will download all dependencies and install the package to your local
26+
python3 modules.
27+
28+
* Installing to a specified directory:
29+
30+
You can also install the tools to a specified directory, we suggest you to use
31+
the python virtual environment for it:
32+
33+
cd /opt/opengrok
34+
python3 -m venv opengrok-tools
35+
opengrok-tools/bin/python -m pip install opengrok_tools.tar.gz
36+
37+
This will install the package and all the dependencies under the
38+
/opt/opengrok/opengrok-tools directory. You can then call the scripts with
39+
40+
/opt/opengrok/opengrok-tools/bin/opengrok-indexer
41+
/opt/opengrok/opengrok-tools/bin/opengrok-groups
42+
...
43+
44+
Uninstall
45+
---------
46+
47+
* from system level package or from venv:
48+
(assuming the venv is activated or you are running python3 from the venv
49+
binary directory)
50+
51+
python3 -m pip uninstall opengrok_tools
52+

0 commit comments

Comments
 (0)