Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
janvanmansum committed Aug 19, 2018
1 parent 2dccb68 commit ac3c46e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build-install-springfield-mod.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

if (( $# < 2 )); then
echo "Installs springfield module into local Maven cache"
echo
echo "Usage: $(basename $0) <artifact> <version>"
echo "Example: $(basename $0) war/momar.war 1.0.0"
exit 1
fi

ARTIFACT=$1
VERSION=$2
BASENAME=$(basename $ARTIFACT)
MODULE=$(echo $BASENAME | cut -d. -f1)
EXT=$(echo $BASENAME | cut -d. -f2)
SPRINGFIELD_PACKAGE=springfield2

mvn install:install-file -Dfile=$ARTIFACT -DartifactId=$MODULE -Dpackaging=$EXT -DgroupId=nl.knaw.dans.springfield2 -Dversion=$VERSION

0 comments on commit ac3c46e

Please sign in to comment.