diff options
author | Don Domingo <ddomingo@redhat.com> | 2009-12-01 11:00:38 +1000 |
---|---|---|
committer | Don Domingo <ddomingo@redhat.com> | 2009-12-01 11:00:38 +1000 |
commit | 34a120fcb38cf509038255d77858b369e88d550c (patch) | |
tree | 2135cad942d7fd1973f2533e6e872bdd5d4eb9ea /doc | |
parent | d3b20053a696d3834d4b2cf73afa296464555c85 (diff) | |
download | systemtap-steved-34a120fcb38cf509038255d77858b369e88d550c.tar.gz systemtap-steved-34a120fcb38cf509038255d77858b369e88d550c.tar.xz systemtap-steved-34a120fcb38cf509038255d77858b369e88d550c.zip |
minor modifications to allow book to build in latest Publican (1.x). to build in older versions of Publican, use old-syncandbuild.sh
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/SystemTap_Beginners_Guide/old-syncandbuild.sh | 25 | ||||
-rw-r--r-- | doc/SystemTap_Beginners_Guide/publican.cfg | 8 |
2 files changed, 33 insertions, 0 deletions
diff --git a/doc/SystemTap_Beginners_Guide/old-syncandbuild.sh b/doc/SystemTap_Beginners_Guide/old-syncandbuild.sh new file mode 100755 index 00000000..e6a6c1f4 --- /dev/null +++ b/doc/SystemTap_Beginners_Guide/old-syncandbuild.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# Instead of running the original makefile to build the document, run this script instead +echo -n "Please specify your build target (e.g. html, pdf, or html-single) " +read TARG +echo -n "Please specify the product you are building for (enter 1 for Fedora, 2 for RHEL) " +read PROD +echo -n "Please specify any build parameters you'd like to use (skip this step for none). " +read PARM + +if [ $PROD = 1 ]; +then + sed -i -e 's/<productname>Red Hat Enterprise Linux/<productname>Fedora/g' en-US/Book_Info.xml; + sed -i -e 's/<productnumber>5/<productnumber>10/g' en-US/Book_Info.xml; + sed -i -e 's/BRAND = RedHat/BRAND = fedora/g' Makefile; + make $PARM $TARG-en-US post + +else +sed -i -e 's/BRAND = fedora/BRAND = RedHat/g' Makefile; +make post $PARM $TARG-en-US +fi + +echo "done." +echo "Cleaning sync'd files..." +make post +echo "...done."
\ No newline at end of file diff --git a/doc/SystemTap_Beginners_Guide/publican.cfg b/doc/SystemTap_Beginners_Guide/publican.cfg new file mode 100644 index 00000000..cc174563 --- /dev/null +++ b/doc/SystemTap_Beginners_Guide/publican.cfg @@ -0,0 +1,8 @@ +# Config::Simple 4.59 +# Tue Dec 1 09:26:42 2009 + +debug: 1 +xml_lang: en-US +brand: fedora +condition: fedora + |