2015-01-13 19:37:05 +00:00
|
|
|
if [ $# -lt 1 ]
|
2015-01-13 19:32:49 +00:00
|
|
|
then
|
2015-01-13 19:37:05 +00:00
|
|
|
ONTO=onyx
|
2015-01-13 19:32:49 +00:00
|
|
|
else
|
2015-01-13 19:37:05 +00:00
|
|
|
ONTO=$1
|
2015-01-13 19:32:49 +00:00
|
|
|
fi
|
|
|
|
if [ $# -lt 2 ]
|
|
|
|
then
|
2015-01-13 19:35:09 +00:00
|
|
|
DIR=~/Doctorado/Ontologies/Onyx
|
2015-01-13 19:32:49 +00:00
|
|
|
else
|
|
|
|
DIR=$2
|
|
|
|
fi
|
2015-01-13 19:37:05 +00:00
|
|
|
if [ $# -lt 3 ]
|
2015-01-13 19:32:49 +00:00
|
|
|
then
|
2015-01-13 19:37:05 +00:00
|
|
|
REMOTE=gsi-web@web-home.dit.upm.es:lib/www/gsi/ontologies/
|
2015-01-13 19:32:49 +00:00
|
|
|
else
|
2015-01-13 19:37:05 +00:00
|
|
|
REMOTE=$3
|
|
|
|
fi
|
|
|
|
if [ $# -lt 4 ]
|
|
|
|
then
|
|
|
|
NS=http://www.gsi.dit.upm.es/ontologies/$ONTO/ns#
|
|
|
|
else
|
|
|
|
NS=$4
|
2015-01-13 19:32:49 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Generating docs for $ONTO from: $DIR"
|
2015-01-13 19:37:27 +00:00
|
|
|
echo "Namespace: $NS"
|
2015-01-13 19:32:49 +00:00
|
|
|
|
2015-01-13 19:37:05 +00:00
|
|
|
python specgen6.py --indir=$DIR --ns=$NS --prefix=$ONTO --ontofile=$ONTO.owl --outdir=$DIR/spec/latest --templatedir= --outfile=index.html
|
2015-01-13 19:32:49 +00:00
|
|
|
echo "Uploading to $REMOTE"
|
|
|
|
rsync -r --links --copy-unsafe-links $DIR/spec/ $REMOTE
|