2020-12-29 23:38:50 +01:00
|
|
|
#!/bin/bash -e
|
|
|
|
# OTHER REQUIRED ENVIRONMENT VARIABLES:
|
|
|
|
# REVISION = <revision>
|
|
|
|
# IMPLEMENTATION_NAME = <tdlib | tdlight>
|
|
|
|
|
|
|
|
# Check variables correctness
|
|
|
|
if [ -z "${REVISION}" ]; then
|
|
|
|
echo "Missing parameter: REVISION"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
if [ -z "${IMPLEMENTATION_NAME}" ]; then
|
|
|
|
echo "Missing parameter: IMPLEMENTATION_NAME"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2021-10-22 13:52:08 +02:00
|
|
|
cd ../../
|
2020-12-29 23:38:50 +01:00
|
|
|
|
2021-10-22 13:52:08 +02:00
|
|
|
mvn -B -P "${IMPLEMENTATION_NAME}" -Drevision="${REVISION}" clean deploy
|
2020-12-29 23:38:50 +01:00
|
|
|
|
|
|
|
echo "Done."
|
|
|
|
exit 0
|