summaryrefslogtreecommitdiffstats
path: root/doc/SystemTap_Beginners_Guide
diff options
context:
space:
mode:
authorddomingo <ddomingo@redhat.com>2009-01-27 14:58:43 +1000
committerddomingo <ddomingo@redhat.com>2009-01-27 14:58:43 +1000
commitab1739808d027db986ff72f67743442bc7c884f2 (patch)
treeb39b696708c99b0547180cd69572a52dd4cc0d0a /doc/SystemTap_Beginners_Guide
parent6f2e08530c527a072732d1792a092231d881647c (diff)
downloadsystemtap-steved-ab1739808d027db986ff72f67743442bc7c884f2.tar.gz
systemtap-steved-ab1739808d027db986ff72f67743442bc7c884f2.tar.xz
systemtap-steved-ab1739808d027db986ff72f67743442bc7c884f2.zip
fixed syncnbuild script to automate tag revisions depending on product target (i.e. RHEL vs Fedora)
Diffstat (limited to 'doc/SystemTap_Beginners_Guide')
-rwxr-xr-xdoc/SystemTap_Beginners_Guide/syncandbuild.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/SystemTap_Beginners_Guide/syncandbuild.sh b/doc/SystemTap_Beginners_Guide/syncandbuild.sh
index 75e8bd0d..b5d926d7 100755
--- a/doc/SystemTap_Beginners_Guide/syncandbuild.sh
+++ b/doc/SystemTap_Beginners_Guide/syncandbuild.sh
@@ -2,12 +2,23 @@
# Instead of running the original makefile to build the document, run this script instead
echo -n "Please specify your build target (e.g. html-en-US, pdf-en-US, etc) "
read TARG
+echo -n "Please specify the product you are building for: enter 1 for Fedora, 2 for RHEL "
+read PROD
echo -n "Thank you. Now specify any build parameters you'd like to use (skip this step for none). "
read PARM
cp -a ../../testsuite en-US/extras/.
-make $PARM $TARG
+if [ $PROD = 1 ];
+ then sed -i -e 's/<productname>Red Hat Enterprise Linux/<productname>Fedora Core/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
+ sed -i -e 's/<productname>Fedora Core/<productname>Red Hat Enterprise Linux/g' en-US/Book_Info.xml;
+ sed -i -e 's/<productnumber>10/<productnumber>5/g' en-US/Book_Info.xml;
+ sed -i -e 's/BRAND = fedora/BRAND = RedHat/g' Makefile;
+else make $PARM $TARG
+fi
echo "Cleaning sync'd files..."
rm -rf en-US/extras/testsuite