1
0
mirror of https://github.com/balkian/gists.git synced 2024-10-31 23:51:44 +00:00
gists/upload.sh
J. Fernando Sánchez 3f24eaa185
2015-06-08 16:43:03 +02:00

24 lines
389 B
Bash

#!/bin/bash
if [ $# -lt 1 ]
then
echo "Please, specify an ontology"
return
else
ONTO=$1
fi
if [ $# -lt 2 ]
then
DIR=~/Doctorado/Ontologies/$ONTO/spec/
else
DIR=$2
fi
if [ $# -lt 3 ]
then
REMOTE=gsi-web@web-home.dit.upm.es:lib/www/gsi/ontologies/$ONTO/
else
REMOTE=$3
fi
echo "Uploading to $REMOTE"
rsync -r --links --copy-unsafe-links $DIR $REMOTE