From 138dc35014aa06ec3ef7448505f1195295e8e42d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Tue, 13 Jan 2015 11:37:05 -0800 Subject: [PATCH] --- ontology.sh | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/ontology.sh b/ontology.sh index 21520ea..9905031 100644 --- a/ontology.sh +++ b/ontology.sh @@ -1,27 +1,30 @@ - -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 +if [ $# -lt 2 ] + then + DIR=~/Doctorado/Ontologies/Onyx + else + DIR=$2 +fi +if [ $# -lt 3 ] + then + REMOTE=gsi-web@web-home.dit.upm.es:lib/www/gsi/ontologies/ + else + 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 \ No newline at end of file