File: change_doc_build_script

package info (click to toggle)
sqlobject 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,880 kB
  • ctags: 3,020
  • sloc: python: 15,679; sh: 28; makefile: 12
file content (22 lines) | stat: -rw-r--r-- 812 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Use rst2html from python-docutils to build the documentation.
Author: Neil Muller <drnlmuller+debian@gmail.com>
Forwarded: not-needed
Last-Update: 2014-04-13

--- a/docs/rebuild
+++ b/docs/rebuild
@@ -11,11 +11,11 @@
         community download index links sqlobject-admin"
 
 for NAME in $NORMAL ; do
-    if [ -e "$NAME.html" -a ! "$NAME.html" -ot "$NAME.txt" ] ; then
+    if [ -e "docs/$NAME.html" -a ! "docs/$NAME.html" -ot "docs/$NAME.txt" ] ; then
         echo "$NAME is up to date."
         continue
     fi
     echo "Building $NAME."
-    rst2html.py --no-toc-backlinks --stylesheet=default.css --link-stylesheet \
-        -- "$NAME.txt" > "$NAME.html"
+    rst2html --no-toc-backlinks --stylesheet=default.css --link-stylesheet \
+        -- "docs/$NAME.txt" > "docs/$NAME.html"
 done