Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/OpenGrok/OpenGrok into po…
Browse files Browse the repository at this point in the history
…wershellAddition
  • Loading branch information
shaehn committed Sep 19, 2017
2 parents 0961984 + 3ffb2f9 commit 78bc0f3
Show file tree
Hide file tree
Showing 68 changed files with 2,008 additions and 1,435 deletions.
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Any kind of contribution is welcome. If you are not sure whether your idea is in line with
the general direction of the project, feel free to submit new Issue first and let's get the discussion started there.

Please follow pre-existing coding style.

Asking questions via creating new Issue is fine also.

When submitting a new Issue for what seems is a bug, please note the version you're running and ideally steps to reproduce.

For pull requests to be merged, we need contributors to get Oracle Contributor Agreement first.
For a pull request to be merged, we need the contributor to sign Oracle Contributor Agreement first.
See http://www.oracle.com/technetwork/community/oca-486395.html for details.
35 changes: 21 additions & 14 deletions OpenGrok
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,13 @@
# through project, it's good to have Verbose
# Mode enabled too, cost of this is one more
# traversal of the project before indexing it(*)
# - OPENGROK_DISABLE_RENAMED_FILES_HISTORY Disable getting full history of
# - OPENGROK_RENAMED_FILES_HISTORY If set to "on", get full history of
# renamed files for SCMs that support it (Git,
# Mercurial).
# The default is handle the history which makes
# indexing slower, especially in the presence of
# The default is off.
# When set to on, the indexing is slower,
# especially in the presence of
# lots of renamed files in the repository.
# Set it to non-empty value to disable the
# renamed files history handling.
# - OPENGROK_GENERATE_HISTORY Influence history cache generation
# Following values are recognized:
# on - enabled (default)
Expand Down Expand Up @@ -107,9 +106,13 @@ Usage()
echo ""
echo "Usage: ${progname} <bootstrap|deploy|derby|update|updateQuietly|usage|help>"
echo " ${progname} index [<directory>]"
echo " ${progname} indexpart <src_root> <directory1> [..]"
echo " ${progname} indexpart <directory_1> [<directory_2> ..]"
echo " ${progname} clearHistory <src_root> <repository_name>"
echo ""
echo " The \"indexpart\" assumes that it will be run with configuration"
echo " pointed to via the OPENGROK_READ_XML_CONFIGURATION environment"
echo " variable."
echo ""
echo " Optional environment variables:"
echo " OPENGROK_CONFIGURATION - location of your configuration"
echo " e.g. $ OPENGROK_CONFIGURATION=/var/opengrok/myog.conf ${0} ... "
Expand All @@ -134,8 +137,8 @@ else
exit 1
fi

SCRIPT_FILE=`readlink -f "${0}"`
SCRIPT_DIRECTORY=`dirname "${SCRIPT_FILE}"`
SCRIPT_DIRECTORY=`dirname "${0}"`
export SCRIPT_DIRECTORY=`cd "${SCRIPT_DIRECTORY}"; pwd -P`

#
# Default Instance Configuration
Expand Down Expand Up @@ -282,9 +285,11 @@ DefaultInstanceConfiguration()
GENERATE_HISTORY="${GENERATE_HISTORY} -H"
fi

if [ -n "$OPENGROK_DISABLE_RENAMED_FILES_HISTORY" ]
if [ "$OPENGROK_RENAMED_FILES_HISTORY" != "on" ]
then
DISABLE_RENAMED_FILES_HISTORY="-D"
RENAMED_FILES_HISTORY="-D off"
else
RENAMED_FILES_HISTORY="-D on"
fi

# OPTIONAL: override depth of scanning for repositories
Expand Down Expand Up @@ -815,7 +820,7 @@ CommonInvocation()
${IGNORE_PATTERNS} \
${HISTORY_TAGS} \
${GENERATE_HISTORY} \
${DISABLE_RENAMED_FILES_HISTORY} \
${RENAMED_FILES_HISTORY} \
${SCAN_DEPTH} \
${PROGRESS} \
${OPENGROK_CTAGS:+-c} ${OPENGROK_CTAGS} \
Expand Down Expand Up @@ -1053,12 +1058,14 @@ case "${1}" in
;;

indexpart)
if [ $# -ne 3 ]
if [ $# -ne 2 ]
then
Usage
fi
SRC_ROOT="${2}"
shift 2
shift
if [ -z "$OPENGROK_READ_XML_CONFIGURATION" ]; then
FatalError "need configuration via OPENGROK_READ_XML_CONFIGURATION"
fi
ValidateConfiguration
CreateRuntimeRequirements
UpdateDataPartial $@
Expand Down
Loading

0 comments on commit 78bc0f3

Please sign in to comment.