diff options
author | Don Domingo <ddomingo@redhat.com> | 2009-12-01 11:02:29 +1000 |
---|---|---|
committer | Don Domingo <ddomingo@redhat.com> | 2009-12-01 11:02:29 +1000 |
commit | 789aad3429c6a3f7b8f66b609f18a092c7b04f62 (patch) | |
tree | 0b8b536e9f8a6e2d4788703de84459f0e7abca95 /doc | |
parent | e5e29c7f0f3c8b71444ae12fcd3f2c624d124cae (diff) | |
download | systemtap-steved-789aad3429c6a3f7b8f66b609f18a092c7b04f62.tar.gz systemtap-steved-789aad3429c6a3f7b8f66b609f18a092c7b04f62.tar.xz systemtap-steved-789aad3429c6a3f7b8f66b609f18a092c7b04f62.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/syncandbuild.sh | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/doc/SystemTap_Beginners_Guide/syncandbuild.sh b/doc/SystemTap_Beginners_Guide/syncandbuild.sh index e6a6c1f4..00084985 100755 --- a/doc/SystemTap_Beginners_Guide/syncandbuild.sh +++ b/doc/SystemTap_Beginners_Guide/syncandbuild.sh @@ -4,22 +4,35 @@ 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 +#echo -n "Please specify any build parameters you'd like to use (skip this step for none). " +#read PARM +#copy scripts from testsuite +cp -a ../../testsuite en-US/extras/; 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 + sed -i -e 's/<productnumber>5.4/<productnumber>10/g' en-US/Book_Info.xml; + sed -i -e 's/brand: RedHat/brand: fedora/g' publican.cfg; + sed -i -e 's/condition: RedHat/condition: fedora/g' publican.cfg; + publican build --formats=$TARG --langs=en-US; +# rm -rf en-US/extras/testsuite + sed -i -e 's/<productname>Fedora/<productname>Red Hat Enterprise Linux/g' en-US/Book_Info.xml; + sed -i -e 's/<productnumber>10/<productnumber>5.4/g' en-US/Book_Info.xml; + else -sed -i -e 's/BRAND = fedora/BRAND = RedHat/g' Makefile; -make post $PARM $TARG-en-US +sed -i -e 's/brand: fedora/brand: RedHat/g' publican.cfg; +sed -i -e 's/brand: fedora/brand: RedHat/g' publican.cfg; +#make post $PARM $TARG-en-US +publican build --formats=$TARG --langs=en-US; +#rm -rf en-US/extras/testsuite +sed -i -e 's/<productname>Fedora/<productname>Red Hat Enterprise Linux/g' en-US/Book_Info.xml; +sed -i -e 's/<productnumber>10/<productnumber>5.4/g' en-US/Book_Info.xml; + fi echo "done." echo "Cleaning sync'd files..." -make post +rm -rf en-US/extras/testsuite ; echo "...done."
\ No newline at end of file |