mirror of
https://github.com/corda/corda.git
synced 2024-12-19 13:08:04 +00:00
18 lines
374 B
Bash
Executable File
18 lines
374 B
Bash
Executable File
#!/bin/sh
|
|
|
|
DIRNAME=$(dirname $0)
|
|
|
|
if [ -z "$JAVA_HOME" -o ! -x $JAVA_HOME/bin/java ]; then
|
|
echo "Please set JAVA_HOME correctly"
|
|
exit 1
|
|
fi
|
|
|
|
if ($DIRNAME/../../gradlew -PpackageType=rpm javapackage $*); then
|
|
echo
|
|
echo "Wrote installer to '$(find $DIRNAME/build/javapackage/bundles -type f)'"
|
|
echo
|
|
else
|
|
echo "Failed to create installer."
|
|
exit 1
|
|
fi
|