]> sourceware.org Git - systemtap.git/commitdiff
fixed syncnbuild script to automate tag revisions depending on product target (i...
authorddomingo <ddomingo@redhat.com>
Tue, 27 Jan 2009 04:58:43 +0000 (14:58 +1000)
committerddomingo <ddomingo@redhat.com>
Tue, 27 Jan 2009 04:58:43 +0000 (14:58 +1000)
doc/SystemTap_Beginners_Guide/syncandbuild.sh

index 75e8bd0d49759d7ef56afa1a97fe62ee312dee5b..b5d926d7271fd4076ae7af06af25c927c80fe569 100755 (executable)
@@ -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
This page took 0.042725 seconds and 5 git commands to generate.