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.

31 lines
637 B
Bash

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