Skip to content
Snippets Groups Projects
setup-or-reset-dief.sh 629 B
Newer Older
#!/bin/bash

# get all variables and functions
source functions.sh
cd marvin-extraction
Sebastian Hellmann's avatar
Sebastian Hellmann committed
git clone "https://github.com/dbpedia/extraction-framework.git" $DIEFDIR &>/dev/null
cd $DIEFDIR
# reset the ontology and some files that are changes
git stash
Sebastian Hellmann's avatar
Sebastian Hellmann committed
git pull

# concat universial props
echo "base-dir=$EXTRACTIONBASEDIR" > $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 
Marvin Hofer's avatar
Marvin Hofer committed
mvn clean install 2>&1 | tee $LOGDIR/installDIEF.log