J. Fernando Sánchez 9 years ago
parent 0364bb2551
commit 138dc35014

@ -1,27 +1,30 @@
if [ $# -lt 3 ]
if [ $# -lt 1 ]
then
REMOTE=gsi-web@web-home.dit.upm.es:lib/www/gsi/ontologies/
ONTO=onyx
else
REMOTE=$3
ONTO=$1
fi
if [ $# -lt 2 ]
then
DIR=~/Doctorado/Ontologies/Onyx
else
DIR=$2
fi
if [ $# -lt 1 ]
if [ $# -lt 3 ]
then
ONTO=onyx
REMOTE=gsi-web@web-home.dit.upm.es:lib/www/gsi/ontologies/
else
ONTO=$1
REMOTE=$3
fi
if [ $# -lt 4 ]
then
NS=http://www.gsi.dit.upm.es/ontologies/$ONTO/ns#
else
NS=$4
fi
echo "Generating docs for $ONTO from: $DIR"
python specgen6.py --indir=$DIR --ns='http://www.gsi.dit.upm.es/ontologies/$ONTO/ns#' --prefix=$ONTO --ontofile=$ONTO.owl --outdir=$DIR/spec/latest --templatedir= --outfile=index.html
python specgen6.py --indir=$DIR --ns=$NS --prefix=$ONTO --ontofile=$ONTO.owl --outdir=$DIR/spec/latest --templatedir= --outfile=index.html
echo "Uploading to $REMOTE"
rsync -r --links --copy-unsafe-links $DIR/spec/ $REMOTE
Loading…
Cancel
Save