From d36439a7d51fc0b202f37809be2974d2cdf24063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Tue, 13 Jan 2015 11:32:49 -0800 Subject: [PATCH] --- ontology.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ontology.sh diff --git a/ontology.sh b/ontology.sh new file mode 100644 index 0000000..41d911e --- /dev/null +++ b/ontology.sh @@ -0,0 +1,27 @@ + +if [ $# -lt 3 ] + then + REMOTE=gsi-web@web-home.dit.upm.es:lib/www/gsi/ontologies/ + else + REMOTE=$3 +fi + +if [ $# -lt 2 ] + then + DIR=~/Doctorado/Ontologies/onyx + else + DIR=$2 +fi + +if [ $# -lt 1 ] + then + ONTO=onyx + else + ONTO=$1 +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 +echo "Uploading to $REMOTE" +rsync -r --links --copy-unsafe-links $DIR/spec/ $REMOTE \ No newline at end of file