Skip to content

Commit

Permalink
Add maven-plugin bash build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmoldrich committed Nov 16, 2019
1 parent cb45ec2 commit 544cdb3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tools/gcc-bridge/maven-plugin/dev-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash -e

if [ -z "$1" ]; then
echo "USAGE: ./dev-build.sh <version>"
echo
echo "where <version> 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

0 comments on commit 544cdb3

Please sign in to comment.