22 lines
445 B
Bash
Executable File
22 lines
445 B
Bash
Executable File
#!/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
|
|
|
|
cd ../../${IMPLEMENTATION_NAME}
|
|
|
|
mvn -B -Drevision=${REVISION} clean deploy --file pom.xml
|
|
|
|
echo "Done."
|
|
exit 0
|