1
0
mirror of https://github.com/balkian/gists.git synced 2024-11-01 08:01:44 +00:00
gists/repos/90c0497c0b207812cbbc/upload.sh

27 lines
374 B
Bash
Raw Normal View History

2015-06-08 14:43:03 +00:00
#!/bin/bash
if [ $# -lt 1 ]
then
echo "Please, specify an ontology"
2015-12-10 10:04:27 +00:00
exit 0
2015-06-08 14:43:03 +00:00
else
ONTO=$1
fi
if [ $# -lt 2 ]
then
DIR=~/Doctorado/Ontologies/$ONTO/spec/
else
DIR=$2
fi
if [ $# -lt 3 ]
then
2015-12-10 10:04:27 +00:00
REMOTE=ontologies@gsi.dit.upm.es:$ONTO/
2015-06-08 14:43:03 +00:00
else
REMOTE=$3
fi
echo "Uploading to $REMOTE"
2015-12-10 10:04:27 +00:00
#scp -r $DIR $REMOTE
sftp $REMOTE -b <<EOF
mput -r $DIR
EOF