From 544cdb300eae3eb696e14e7743a6b89dcb7c7cdf Mon Sep 17 00:00:00 2001 From: Jarrod Moldrich Date: Sat, 16 Nov 2019 02:40:16 +0000 Subject: [PATCH] Add maven-plugin bash build script --- tools/gcc-bridge/maven-plugin/dev-build.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tools/gcc-bridge/maven-plugin/dev-build.sh diff --git a/tools/gcc-bridge/maven-plugin/dev-build.sh b/tools/gcc-bridge/maven-plugin/dev-build.sh new file mode 100755 index 0000000000..9cb467dad1 --- /dev/null +++ b/tools/gcc-bridge/maven-plugin/dev-build.sh @@ -0,0 +1,17 @@ +#!/bin/bash -e + +if [ -z "$1" ]; then + echo "USAGE: ./dev-build.sh " + echo + echo "where relates to the version in './pom.xml' and the project.version property in '../../../build.gradle'" + echo "e.g., ./dev-build.sh 3.5-betadev" + exit 1 +fi + +[ -f "../runtime/build/libs/runtime-$1.jar" ] || { echo "Runtime library not built, run './gradlew publishToMavenLocal' in the renjin root folder, and ensure version is consistent" && exit 1; } + +echo "Building..." +set -x +mvn package +mvn install:install-file -Dfile=../runtime/build/libs/runtime-$1.jar -DgroupId=org.renjin -DartifactId=gcc-runtime -Dversion=$1 -Dpackaging=jar +mvn install:install-file -Dfile=target/gcc-bridge-maven-plugin-$1.jar -DgroupId=org.renjin -DartifactId=gcc-bridge-maven-plugin -Dversion=$1 -Dpackaging=jar -DpomFile=pom.xml