You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by dk...@apache.org on 2015/04/10 22:01:41 UTC

incubator-tinkerpop git commit: changed working directory for AsciiDocs preprocessor

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master ebdfd9198 -> 8806a2704


changed working directory for AsciiDocs preprocessor


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/8806a270
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/8806a270
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/8806a270

Branch: refs/heads/master
Commit: 8806a2704f123a77d1ee593dcff71b132ff8f369
Parents: ebdfd91
Author: Daniel Kuppitz <da...@hotmail.com>
Authored: Fri Apr 10 22:01:23 2015 +0200
Committer: Daniel Kuppitz <da...@hotmail.com>
Committed: Fri Apr 10 22:01:23 2015 +0200

----------------------------------------------------------------------
 docs/preprocessor/preprocess.sh | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/8806a270/docs/preprocessor/preprocess.sh
----------------------------------------------------------------------
diff --git a/docs/preprocessor/preprocess.sh b/docs/preprocessor/preprocess.sh
index 592c23c..78c0f32 100755
--- a/docs/preprocessor/preprocess.sh
+++ b/docs/preprocessor/preprocess.sh
@@ -30,15 +30,21 @@ fi
 mkdir -p target/postprocess-asciidoc
 
 rm -rf target/postprocess-asciidoc/*
+mkdir target/postprocess-asciidoc/tmp
 cp -R docs/{static,stylesheets} target/postprocess-asciidoc/
 
-for input in $(find docs/src/ -name "*.asciidoc")
+TP_HOME=`pwd`
+
+cd target/postprocess-asciidoc/tmp
+ln -s ../../../data data
+
+for input in $(find "${TP_HOME}/docs/src/" -name "*.asciidoc")
 do
   name=`basename $input`
-  output="target/postprocess-asciidoc/${name}"
+  output="${TP_HOME}/target/postprocess-asciidoc/${name}"
   echo "${input} > ${output}"
   if [ $(grep -c '^\[gremlin' $input) -gt 0 ]; then
-    bin/gremlin.sh -e docs/preprocessor/processor.groovy $input > $output
+    ${TP_HOME}/bin/gremlin.sh -e ${TP_HOME}/docs/preprocessor/processor.groovy $input > $output
     ec=$?
     if [ $ec -ne 0 ]; then
       popd > /dev/null