summaryrefslogtreecommitdiffstats
path: root/doc/SystemTap_Beginners_Guide/syncandbuild.sh
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-02-20 14:56:38 +0100
committerMark Wielaard <mjw@redhat.com>2009-02-20 14:56:38 +0100
commit02615365a92ca2570c1f96abc8a97674aa2ccae1 (patch)
treeebedfd91a0f6d299b39e84295e091e12c0767dc8 /doc/SystemTap_Beginners_Guide/syncandbuild.sh
parentc3bad3042df505a3470f1e20b09822a9df1d4761 (diff)
parentadc67597f327cd43d58b1d0cb740dab14a75a058 (diff)
downloadsystemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.tar.gz
systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.tar.xz
systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.zip
Merge branch 'master' into pr6866
Conflicts: ChangeLog: Removed runtime/ChangeLog: Removed runtime/sym.c: Merged runtime/task_finder.c: Merged tapset/ChangeLog: Removed testsuite/ChangeLog: Removed
Diffstat (limited to 'doc/SystemTap_Beginners_Guide/syncandbuild.sh')
-rwxr-xr-xdoc/SystemTap_Beginners_Guide/syncandbuild.sh23
1 files changed, 17 insertions, 6 deletions
diff --git a/doc/SystemTap_Beginners_Guide/syncandbuild.sh b/doc/SystemTap_Beginners_Guide/syncandbuild.sh
index 75e8bd0d..e6a6c1f4 100755
--- a/doc/SystemTap_Beginners_Guide/syncandbuild.sh
+++ b/doc/SystemTap_Beginners_Guide/syncandbuild.sh
@@ -1,14 +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-en-US, pdf-en-US, etc) "
+echo -n "Please specify your build target (e.g. html, pdf, or html-single) "
read TARG
-echo -n "Thank you. Now specify any build parameters you'd like to use (skip this step for none). "
+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
-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
-make $PARM $TARG
+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..."
-rm -rf en-US/extras/testsuite
-echo "...done."
+make post
+echo "...done." \ No newline at end of file