-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop'
- Loading branch information
Showing
911 changed files
with
21,683 additions
and
7,290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,20 @@ | ||
#!/bin/bash | ||
#!/bin/bash -e | ||
|
||
if [[ $# -eq 0 ]] ; then | ||
echo "Please pass to the script an ES version you'd like to build ROR for" | ||
echo "Please pass to the script an ES version you\'d like to build ROR for" | ||
exit 1 | ||
fi | ||
|
||
version() { | ||
echo "$@" | awk -F. '{ printf("%d%03d%03d\n", $1,$2,$3); }'; | ||
} | ||
export -f version | ||
|
||
vergte() { | ||
[ $(version $1) -ge $(version $2) ] | ||
} | ||
export -f vergte | ||
cd "$(dirname "$0")/.." | ||
|
||
mkdir -p builds | ||
rm -r builds/* | ||
rm -r builds/* || true | ||
|
||
for arg in "$@"; do | ||
ES_VERSION=$arg | ||
echo "Building ROR for ES_VERSION $ES_VERSION:" | ||
|
||
ES_MODULE=$(ls | \ | ||
grep -Ei '^es[0-9]+x$' | \ | ||
sed "s/^es\([0-9]\)\([0-9]*\)x$/\1.\2.0 $ES_VERSION es\1\2x/" | \ | ||
sort -Vr | \ | ||
awk '{ if (system("vergte " $2 " " $1) == 0) { print $3 } }' | \ | ||
head -1) | ||
|
||
echo "Building ROR for ES_VERSION: $ES_VERSION (using ES_MODULE: $ES_MODULE):" | ||
|
||
./gradlew clean --stacktrace $ES_MODULE:ror '-PesVersion='$ES_VERSION | ||
./gradlew clean --stacktrace --info buildRorPlugin '-PesVersion='"$ES_VERSION" | ||
|
||
cp $ES_MODULE/build/distributions/readonlyrest-*es$ES_VERSION.zip* builds | ||
done | ||
cp es*/build/distributions/readonlyrest-*es"$ES_VERSION".zip* builds | ||
done |
Oops, something went wrong.