summaryrefslogtreecommitdiff
path: root/bin/gendoc
diff options
context:
space:
mode:
authorJerome Martin <jxm@risingtidesystems.com>2011-09-22 00:48:23 +0200
committerJerome Martin <jxm@risingtidesystems.com>2011-09-22 01:40:22 +0200
commit95cdcb7dd669d840d14bd099d68fce4dcdc9cc64 (patch)
tree065d06af0d3ccce58abaed8adcbf88f1dfae4a29 /bin/gendoc
parent7158711b2d4217d600a8b750e6e6974931b5a910 (diff)
downloadtargetcli-95cdcb7dd669d840d14bd099d68fce4dcdc9cc64.tar.gz
Now using a tarball-release based Makefile.2.0rc1
* Removed useless obsolete targets (setup.py based) * Merged version templating in Makefile (removed bin/gen_changelog*). * Added 'release' make target that generates a dist/*.tar.gz official versionned release tarball from which one can just use setup.py, dpkg-buildpackage or rpmbuild (no Makefile in it). * Removed obsolete bin/lint as well. * Now the 'rpm' and 'deb' Makefile targets use the generated release build. * Makefile commands now use no echo mode. * Added timestamps for virtual targets. * Removed obsolete (empty) doc packages generation. The shell is self-documenting. * Cleaned up setup.py alignements.
Diffstat (limited to 'bin/gendoc')
-rwxr-xr-xbin/gendoc104
1 files changed, 0 insertions, 104 deletions
diff --git a/bin/gendoc b/bin/gendoc
deleted file mode 100755
index f14ce2e..0000000
--- a/bin/gendoc
+++ /dev/null
@@ -1,104 +0,0 @@
-#!/bin/bash
-
-# This file is part of targetcli.
-# Copyright (c) 2011 by RisingTide Systems LLC
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, version 3 (AGPLv3).
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-path=$PWD
-
-rm -rf doc &>/dev/null
-mkdir doc
-cp README COPYING doc/
-cp targetcli_doc/rtslogo.* doc/
-
-CSS=../targetcli_doc/html4css1.css
-#CSS=../targetcli_doc/voidspace.css
-RSTTITLE="targetcli_reference"
-TITLE=$RSTTITLE
-#MARK="% generated by Docutils"
-MARK="\documentclass.*"
-#./bin/gendoc.py > doc/$TITLE.rst
-echo > doc/$TITLE.rst
-
-cd doc
-rst2html $TITLE.rst --stylesheet-path $CSS --embed-stylesheet --no-xml-declaration $TITLE.html
-cat $TITLE.rst | grep -v ".. sectnum::" | grep -v "header::" > $TITLE.rst2
-mv $TITLE.rst2 $TITLE.rst
-
-rst2latex $RSTTITLE.rst --toc-entry-backlinks --compound-enumerators --use-verbatim-when-possible --use-latex-toc --section-numbering --documentclass article --documentoptions "10pt,a4paper" --use-latex-toc --use-latex-docinfo --hyperlink-color black $TITLE.tex
-
-perl -pi -e "s/\($MARK\)/\1\n\\\usepackage{fancyhdr}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\usepackage{lastpage}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\usepackage{color}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\usepackage{titlesec}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\usepackage[utf8]{inputenc}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\pagestyle{fancy}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\\definecolor{rtsblue}{RGB}{79,130,189}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\rhead{\\\includegraphics[height=13pt]{rtslogo.eps}}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\chead{}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\lhead{\\\leftmark}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\renewcommand{\\\headrule}{{\\\color{rtsblue}\\\hrule width\\\headwidth height\\\headrulewidth \\\vskip-\\\headrulewidth}}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\cfoot{}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\lfoot{Copyright \\\copyright2009-2010 by RisingTide Systems LLC}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\rfoot{Page \\\thepage\\\ of\\\ \\\pageref{LastPage}}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\renewcommand{\\\footrule}{{\\\color{rtsblue}\\\hrule width\\\headwidth height\\\headrulewidth \\\vskip-\\\headrulewidth}}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\renewcommand{\\\headrulewidth}{0.4pt}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\renewcommand{\\\footrulewidth}{0.4pt}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\\titleformat{\\\chapter}\[display\]{\\\color{rtsblue}\\\normalfont\\\huge\\\bfseries}{\\\chaptertitlename\\\thechapter}{20pt}{\\\Huge}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\\titleformat{\\\section}{\\\color{rtsblue}\\\normalfont\\\Large\\\bfseries}{\\\thesection}{1em}{}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\\titleformat{\\\subsection}{\\\color{rtsblue}\\\normalfont\\\large\\\bfseries}{\\\thesubsection}{1em}{}/g" $TITLE.tex
-
-# once for generating the formatting
-latex $TITLE.tex $TITLE.dvi
-# once more for the TOC
-latex $TITLE.tex $TITLE.dvi
-# And now get the labels right
-latex $TITLE.tex $TITLE.dvi
-dvipdf $TITLE.dvi $TITLE.pdf
-
-TITLE="targetcli_reference_for_print"
-
-rst2latex $RSTTITLE.rst --toc-entry-backlinks --compound-enumerators --use-verbatim-when-possible --use-latex-toc --section-numbering --documentclass book --documentoptions "10pt,a4paper" --use-latex-toc --use-latex-docinfo --hyperlink-color black $TITLE.tex
-
-perl -pi -e "s/\($MARK\)/\1\n\\\usepackage{fancyhdr}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\usepackage{lastpage}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\usepackage{color}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\usepackage{titlesec}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\usepackage[utf8]{inputenc}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\\definecolor{rtsblue}{RGB}{79,130,189}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\pagestyle{fancy}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\rhead{\\\includegraphics[height=13pt]{rtslogo.eps}}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\chead{}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\lhead{\\\leftmark}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\renewcommand{\\\headrule}{{\\\color{rtsblue}\\\hrule width\\\headwidth height\\\headrulewidth \\\vskip-\\\headrulewidth}}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\cfoot{}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\lfoot{Copyright \\\copyright2009-2010 by RisingTide Systems LLC}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\rfoot{Page \\\thepage\\\ of\\\ \\\pageref{LastPage}}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\renewcommand{\\\footrule}{{\\\color{rtsblue}\\\hrule width\\\headwidth height\\\headrulewidth \\\vskip-\\\headrulewidth}}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\renewcommand{\\\headrulewidth}{0.4pt}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\renewcommand{\\\footrulewidth}{0.4pt}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\\titleformat{\\\chapter}\[display\]{\\\color{rtsblue}\\\normalfont\\\huge\\\bfseries}{\\\chaptertitlename\\\thechapter}{20pt}{\\\Huge}/g" $TITLE.tex
-perl -pi -e "s/\($MARK\)/\1\n\\\\titleformat{\\\section}{\\\color{rtsblue}\\\normalfont\\\Large\\\bfseries}{\\\thesection}{1em}{}/g" $TITLE.tex
-
-# once for generating the formatting
-latex $TITLE.tex $TITLE.dvi
-# once more for the TOC
-latex $TITLE.tex $TITLE.dvi
-# And now get the labels right
-latex $TITLE.tex $TITLE.dvi
-dvipdf $TITLE.dvi $TITLE.pdf
-
-
-cd ..
-