From 7612b12c2de198a8409141b69839a4cf98da138e Mon Sep 17 00:00:00 2001 From: Marvin Hofer <vehnem@yahoo.de> Date: Fri, 6 Sep 2019 13:35:21 +0200 Subject: [PATCH] label & comment prefix generic-release --- generic/generic-release.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/generic/generic-release.sh b/generic/generic-release.sh index e9c64ce..dbaf709 100644 --- a/generic/generic-release.sh +++ b/generic/generic-release.sh @@ -20,7 +20,8 @@ DATABUSMAVENPOMDIR="/data/extraction/databus-maven-plugin/dbpedia/generic"; RELEASEPUBLISHER="https://vehnem.github.io/webid.ttl#this"; RELEASEPACKAGEDIR="/data/extraction/release"; RELEASEDOWNLOADURL="http://dbpedia-generic.tib.eu/release"; -RELEASELABELPREFIX="" +RELEASELABELPREFIX="(pre-release)" +RELEASECOMMENTPREFIX="(MARVIN is the DBpedia bot, that runs the DBpedia Information Extraction Framework (DIEF) and releases the data as is, i.e. unparsed, unsorted, not redirected for debugging the software. After its releases, data is cleaned and persisted under the dbpedia account.)" #logging directory LOGS="/data/extraction/logs/$(date +%Y-%m-%d)"; @@ -93,7 +94,8 @@ deployRelease() { -Ddatabus.publisher="$RELEASEPUBLISHER" \ -Ddatabus.packageDirectory="$RELEASEPACKAGEDIR/\${project.groupId}/\${project.artifactId}" \ -Ddatabus.downloadUrlPath="$RELEASEDOWNLOADURL/\${project.groupId}/\${project.artifactId}/\${project.version}" \ - -Ddatabus.labelPrefix="$RELEASELABELPREFIX"; + -Ddatabus.labelPrefix="$RELEASELABELPREFIX" \ + -Ddatabus.commentPrefix="$RELEASECOMMENTPREFIX"; } compressLogs() { @@ -137,4 +139,6 @@ main() { compressLogs; } -execWithLogging main; +if [ ! -f "$SCRIPTROOT/generic-release.pid" ]; then + (execWithLogging main; rm "$SCRIPTROOT/generic-release.pid") & echo $! > "$SCRIPTROOT/generic-release.pid" +fi -- GitLab