[tracker] docs/ontology: Fixed missing png images



commit 71710d9c6c61d3749af3726c79251c05a2b2e55a
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Dec 1 12:18:17 2009 +0200

    docs/ontology: Fixed missing png images

 utils/services/gen-doc.sh |   27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)
---
diff --git a/utils/services/gen-doc.sh b/utils/services/gen-doc.sh
index 23b992b..a22cd1c 100755
--- a/utils/services/gen-doc.sh
+++ b/utils/services/gen-doc.sh
@@ -30,24 +30,25 @@ done
 
 echo "Converting all dia diagrams to png"
 for image in `find ../../docs/ontologies -name "*.dia"` ; do
-   dia -t png $image
+    dia -t png $image -e $BUILD_DIR/$(basename ${image/.dia/.png})
 done
 
 for f in `find ../../data/ontologies -name "*.description"` ; do 
-      # ../../data/ontologies/XX-aaa.description -> PREFIX=aaa
-      TMPNAME=${f%.description} 
-      PREFIX=${TMPNAME#*-}
-      echo "Generating $PREFIX"
-      mkdir -p $BUILD_DIR/$PREFIX
-      # Copy before because we check in the code if the documentation exists
-      if [ -e ../../docs/ontologies/$PREFIX ]; then 
-	  cp -r ../../docs/ontologies/$PREFIX/* $BUILD_DIR/$PREFIX/ ;
-      fi
-      ./ttl2html -d $f -o $BUILD_DIR/$PREFIX/index.html -l file-class.cache \
-	  -e ../../docs/ontologies/$PREFIX/explanation.html
+    # ../../data/ontologies/XX-aaa.description -> PREFIX=aaa
+    TMPNAME=${f%.description} 
+    PREFIX=${TMPNAME#*-}
+    echo "Generating $PREFIX"
+    mkdir -p $BUILD_DIR/$PREFIX
+    # Copy before because we check in the code if the documentation exists
+    if [ -e ../../docs/ontologies/$PREFIX ]; then 
+	cp -r ../../docs/ontologies/$PREFIX/* $BUILD_DIR/$PREFIX/ ;
+    fi
+    ./ttl2html -d $f -o $BUILD_DIR/$PREFIX/index.html -l file-class.cache \
+	-e ../../docs/ontologies/$PREFIX/explanation.html
 done
 
 echo "Copying resources"
 cp -R resources/ $BUILD_DIR
 cp ../../docs/ontologies/index.html $BUILD_DIR
-cp ../../docs/ontologies/notation.png $BUILD_DIR
\ No newline at end of file
+
+echo "Visit documentation here: $BUILD_DIR/index.html"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]