summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/build/tools/pre-commit11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/build/tools/pre-commit b/src/build/tools/pre-commit
index ed0187771..32399a47b 100755
--- a/src/build/tools/pre-commit
+++ b/src/build/tools/pre-commit
@@ -24,5 +24,14 @@
#
# IBM_PROLOG_END_TAG
if [ -z $MIRROR ]; then
- $TOOLSDIR/pre-commit-actions
+ if [ -f $TOOLSDIR/pre-commit-actions ]; then
+ $TOOLSDIR/pre-commit-actions
+ # Legacy support for older releases
+ elif [ -f $TOOLSDIR/pre-commit-prologs ]; then
+ export TOOLS_DIR=$GIT_DIR/../src/build/tools
+ $TOOLSDIR/pre-commit-prologs
+ else
+ echo "Missing pre-commit files"
+ exit -1
+ fi
fi
OpenPOWER on IntegriCloud