Skip to content
Snippets Groups Projects
Commit b61d63ef authored by Root's avatar Root
Browse files

changed

parent ac310017
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
# ./marvin-fetch.sh wikidata 2019.08.01
# ./marvin-fetch.sh wikidata 2019.08.01 dbpedia-wikidata.tib.eu
GROUP=$1 GROUP=$1
VERSION=$2 VERSION=$2
SERVER=$3 SERVER=dbpedia-$1.tib.eu
# get artifacts # get artifacts
ARTIFACTS=`xmlstarlet sel -N my=http://maven.apache.org/POM/4.0.0 -t -v "/my:project/my:modules/my:module" $GROUP/pom.xml` ARTIFACTS=`xmlstarlet sel -N my=http://maven.apache.org/POM/4.0.0 -t -v "/my:project/my:modules/my:module" $GROUP/pom.xml`
for a in $ARTIFACTS ; do for ARTIFACT in $ARTIFACTS ; do
echo $i echo $ARTIFACT
#scp -rv marvin-fetch@$SERVER:/data/databus-maven-plugin/dbpedia/$GROUP/$a/$VERSION $GROUP/$a/ #scp -rv marvin-fetch@$SERVER:/data/databus-maven-plugin/dbpedia/$GROUP/$a/$VERSION $GROUP/$a/
rsync -av -e ssh --ignore-existing marvin-fetch@$SERVER:/data/databus-maven-plugin/dbpedia/$GROUP/$a/$VERSION $GROUP/$a rsync -av -e ssh --ignore-existing marvin-fetch@$SERVER:/data/derive/databus-maven-plugin/dbpedia/$GROUP/$ARTIFACT/$VERSION $GROUP/$ARTIFACT
done done
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