You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ig...@apache.org on 2011/06/17 22:42:53 UTC
svn commit: r1137016 - /trafficserver/site/branches/ats-cms/build.sh
Author: igalic
Date: Fri Jun 17 20:42:52 2011
New Revision: 1137016
URL: http://svn.apache.org/viewvc?rev=1137016&view=rev
Log:
Add a simple script for building the docs.
Added:
trafficserver/site/branches/ats-cms/build.sh (with props)
Added: trafficserver/site/branches/ats-cms/build.sh
URL: http://svn.apache.org/viewvc/trafficserver/site/branches/ats-cms/build.sh?rev=1137016&view=auto
==============================================================================
--- trafficserver/site/branches/ats-cms/build.sh (added)
+++ trafficserver/site/branches/ats-cms/build.sh Fri Jun 17 20:42:52 2011
@@ -0,0 +1,32 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+export MARKDOWN_SOCKET=$( readlink -f ../cms/log/md.sock )
+[ ! -d $( dirname "${MARKDOWN_SOCKET}" ) ] && {
+ echo "${MARKDOWN_SOCKET}'s directory doesn't exist!"
+ echo "Please be sure to execute this script from ats-cms' base directory."
+ exit 1
+}
+
+pgrep -f markdownd.py >/dev/null || {
+ cd ../cms
+ python markdownd.py
+}
+
+cd ..
+$PWD/cms/build_site.pl --source-base ats-cms --target-base ats-cms-docroot
Propchange: trafficserver/site/branches/ats-cms/build.sh
------------------------------------------------------------------------------
svn:executable = *