diff options
author | ddomingo <ddomingo@redhat.com> | 2009-01-28 10:25:42 +1000 |
---|---|---|
committer | ddomingo <ddomingo@redhat.com> | 2009-01-28 10:25:42 +1000 |
commit | b34c25d0e44b6fbffe34b262c6005fc310e3cc66 (patch) | |
tree | e5d4b6c40d42a41f1544b2eec320904519ea0da4 | |
parent | c5b5540d1f3104971aefcf1d0f588ffb45d6df7b (diff) | |
download | systemtap-steved-b34c25d0e44b6fbffe34b262c6005fc310e3cc66.tar.gz systemtap-steved-b34c25d0e44b6fbffe34b262c6005fc310e3cc66.tar.xz systemtap-steved-b34c25d0e44b6fbffe34b262c6005fc310e3cc66.zip |
added pre and post routines to Makefile, also cleaned up syncandbuild.sh
-rw-r--r-- | doc/SystemTap_Beginners_Guide/Makefile | 8 | ||||
-rwxr-xr-x | doc/SystemTap_Beginners_Guide/syncandbuild.sh | 22 |
2 files changed, 20 insertions, 10 deletions
diff --git a/doc/SystemTap_Beginners_Guide/Makefile b/doc/SystemTap_Beginners_Guide/Makefile index 7cbd8b2e..f77f047e 100644 --- a/doc/SystemTap_Beginners_Guide/Makefile +++ b/doc/SystemTap_Beginners_Guide/Makefile @@ -2,7 +2,8 @@ XML_LANG = en-US -BRAND = RedHat +BRAND = RedHat +# please define the BRAND in the pre:: section below #SHOW_REMARKS = 1 #OTHER_LANGS = as-IN bn-IN de-DE es-ES fr-FR gu-IN hi-IN it-IT ja-JP kn-IN ko-KR ml-IN mr-IN or-IN pa-IN pt-BR ru-RU si-LK ta-IN te-IN zh-CN zh-TW @@ -12,3 +13,8 @@ CONDITION=$(BRAND) COMMON_CONFIG = /usr/share/publican include $(COMMON_CONFIG)/make/Makefile.common +pre:: + cp -a ../../testsuite en-US/extras/; + +post:: + rm -rf en-US/extras/testsuite
\ No newline at end of file diff --git a/doc/SystemTap_Beginners_Guide/syncandbuild.sh b/doc/SystemTap_Beginners_Guide/syncandbuild.sh index b5d926d7..566921c9 100755 --- a/doc/SystemTap_Beginners_Guide/syncandbuild.sh +++ b/doc/SystemTap_Beginners_Guide/syncandbuild.sh @@ -10,16 +10,20 @@ read PARM cp -a ../../testsuite en-US/extras/. 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; + 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 + else make $PARM $TARG fi +echo "Setting default brand back to RHEL (if needed)..." + 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/g' en-US/Book_Info.xml; + sed -i -e 's/BRAND = fedora/BRAND = RedHat/g' Makefile; +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 |