mirror of https://github.com/balkian/gists
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
374 B
Bash
27 lines
374 B
Bash
#!/bin/bash
|
|
if [ $# -lt 1 ]
|
|
then
|
|
echo "Please, specify an ontology"
|
|
exit 0
|
|
else
|
|
ONTO=$1
|
|
fi
|
|
if [ $# -lt 2 ]
|
|
then
|
|
DIR=~/Doctorado/Ontologies/$ONTO/spec/
|
|
else
|
|
DIR=$2
|
|
fi
|
|
|
|
if [ $# -lt 3 ]
|
|
then
|
|
REMOTE=ontologies@gsi.dit.upm.es:$ONTO/
|
|
else
|
|
REMOTE=$3
|
|
fi
|
|
|
|
echo "Uploading to $REMOTE"
|
|
#scp -r $DIR $REMOTE
|
|
sftp $REMOTE -b <<EOF
|
|
mput -r $DIR
|
|
EOF |