Skip to content
Snippets Groups Projects
Commit 6baa4b60 authored by vehnem's avatar vehnem
Browse files

Merge remote-tracking branch 'origin/master'

parents 521503a4 d3a7d55e
No related branches found
No related tags found
No related merge requests found
...@@ -15,10 +15,11 @@ usage: ...@@ -15,10 +15,11 @@ usage:
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
CONFIGDIR="$ROOT/extractionConfiguration" CONFIGDIR="$ROOT/extractionConfiguration"
DIEFDIR="$ROOT/marvin-extraction/extraction-framework" LOGDIR="$ROOT/logs/$(date +%Y-%m-%d)" && mkdir -p $LOGDIR
LOGDIR="$ROOT/marvin-extraction/logs/$(date +%Y-%m-%d)" && mkdir -p $LOGDIR
EXTRACTIONBASEDIR="$ROOT/marvin-extraction/wikidumps" && mkdir -p $EXTRACTIONBASEDIR
DATABUSDIR="$ROOT/databus-poms" DATABUSDIR="$ROOT/databus-poms"
MARVINEXTRACTIONDIR="$ROOT/marvin-extraction/"
DIEFDIR="$MARVINEXTRACTIONDIR/extraction-framework"
EXTRACTIONBASEDIR="$MARVINEXTRACTIONDIR/wikidumps" && mkdir -p $EXTRACTIONBASEDIR
############## ##############
# functions # functions
......
#!/bin/bash #!/bin/bash
# get all variables and functions # get all variables and functions and mkdirs
source functions.sh source functions.sh
# delete and clone
rm -r $MARVINEXTRACTIONDIR/*
cd marvin-extraction cd marvin-extraction
git clone "https://github.com/dbpedia/extraction-framework.git" $DIEFDIR &>/dev/null git clone "https://github.com/dbpedia/extraction-framework.git" $DIEFDIR &>/dev/null
cd $DIEFDIR cd $DIEFDIR
# reset the ontology and some files that are changes # reset the ontology and some files that are changes
git stash mvn clean install 2>&1 | tee $LOGDIR/installDIEF.log
git pull
# concat universial props # concat universial props
echo "base-dir=$EXTRACTIONBASEDIR" > $DIEFDIR/core/src/main/resources/universal.properties echo "base-dir=$EXTRACTIONBASEDIR" > $DIEFDIR/core/src/main/resources/universal.properties
echo "log-dir=$LOGDIR/extraction/" >> $DIEFDIR/core/src/main/resources/universal.properties echo "log-dir=$LOGDIR/extraction/" >> $DIEFDIR/core/src/main/resources/universal.properties
cat $CONFIGDIR/universal.properties.template >> $DIEFDIR/core/src/main/resources/universal.properties cat $CONFIGDIR/universal.properties.template >> $DIEFDIR/core/src/main/resources/universal.properties
mvn clean install 2>&1 | tee $LOGDIR/installDIEF.log
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment