Skip to content

Commit

Permalink
More startup checks. Faster docs building
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Feb 13, 2014
1 parent d4713f8 commit 3c1dd49
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,21 @@
logstash=$HOME/projects/logstash
contrib=$HOME/projects/logstash-contrib

workdir="/tmp/logstash-release"
mkdir $workdir
workdir="$PWD/build/release/"
mkdir -p $workdir

# circuit breaker to fail if there's something silly wrong.
if [ -z "$workdir" ] ; then
echo "workdir is empty?!"
exit 1
fi

if [ ! -d "$contrib" ] ; then
echo "Missing: $contrib"
echo "Maybe git clone it?"
exit 1
fi

set -e

docs() {
Expand All @@ -22,7 +28,7 @@ docs() {

make -C $workdir build
(cd $contrib; find lib/logstash -type f -name '*.rb') > $workdir/build/contrib_plugins
make -C $workdir docs
make -C $workdir -j 4 docs
}

packages() {
Expand Down

0 comments on commit 3c1dd49

Please sign in to comment.