[yast-commit] r55794 - /trunk/doc/_build-www.sh
Author: locilka Date: Thu Feb 26 15:59:21 2009 New Revision: 55794 URL: http://svn.opensuse.org/viewcvs/yast?rev=55794&view=rev Log: Using package BuildRequires when building its documentation Modified: trunk/doc/_build-www.sh Modified: trunk/doc/_build-www.sh URL: http://svn.opensuse.org/viewcvs/yast/trunk/doc/_build-www.sh?rev=55794&r1=55793&r2=55794&view=diff ============================================================================== --- trunk/doc/_build-www.sh (original) +++ trunk/doc/_build-www.sh Thu Feb 26 15:59:21 2009 @@ -51,7 +51,7 @@ TEST_X=$? echo "Checking for errors..." if [ $TEST_X != 0 ]; then - echo "There were some errors... exiting..." + echo "There were some errors... exiting... current dir: "`pwd` exit 42; fi } @@ -70,15 +70,11 @@ echo echo "*** Checking for installed packages... ***" NEEDED_PACKAGES="docbook2x - docbook-css-stylesheets docbook-dsssl-stylesheets docbook-xml-website docbook-xsl-stylesheets - docbook-simple - docbook-tdg docbook-toys docbook-utils - docbook-xml-slides docbook_3 docbook_4 perl @@ -87,8 +83,8 @@ make gettext-tools gettext-runtime - perl-XML-Generator - fop" + fop + yast2-devtools" echo "Calling zypper install" rpm -q $NEEDED_PACKAGES || zypper in $NEEDED_PACKAGES || (echo "1 exiting..." && exit 42) @@ -123,8 +119,14 @@ echo "*** CREATING ... in source/core" echo "*** CREATING ... in source/core" >> ${BUILDLOG} 2>>${BUILDLOG} cd ${SRCDIR} + cd core echo "| Current directory: "`pwd` + +NEEDED_PACKAGES=`grep "^BuildRequires" yast2*.spec.in | sed 's/BuildRequires:[ \t]\+//' | sed s'/.*\.spec\.in://'` +rpm -q $NEEDED_PACKAGES || zypper in $NEEDED_PACKAGES || (echo "1 exiting..." && exit 42) +checkforerrors + make -f Makefile.cvs >> ${BUILDLOG} 2>>${BUILDLOG} checkforerrors make clean >> ${BUILDLOG} 2>>${BUILDLOG} @@ -135,6 +137,11 @@ echo "*** CREATING XML SOURCES IN source/libyui/doc ***" >> ${BUILDLOG} 2>>${BUILDLOG} cd ${SRCDIR} cd libyui + +NEEDED_PACKAGES=`grep "^BuildRequires" yast2*.spec.in | sed 's/BuildRequires:[ \t]\+//' | sed s'/.*\.spec\.in://'` +rpm -q $NEEDED_PACKAGES || zypper in $NEEDED_PACKAGES || (echo "1 exiting..." && exit 42) +checkforerrors + echo "| Current directory: "`pwd` make -f Makefile.cvs >> ${BUILDLOG} 2>>${BUILDLOG} make ${MAKE_PARAMS} >> ${BUILDLOG} 2>>${BUILDLOG} || (echo "2 exiting..." && exit 42) @@ -146,6 +153,11 @@ echo "*** CREATING XML SOURCES IN ycp-ui-bindings ***" >> ${BUILDLOG} 2>>${BUILDLOG} cd ${SRCDIR} cd ycp-ui-bindings + +NEEDED_PACKAGES=`grep "^BuildRequires" yast2*.spec.in | sed 's/BuildRequires:[ \t]\+//' | sed s'/.*\.spec\.in://'` +rpm -q $NEEDED_PACKAGES || zypper in $NEEDED_PACKAGES || (echo "1 exiting..." && exit 42) +checkforerrors + echo "| Current directory: "`pwd` # because 'doc' is missing there cp --force SUBDIRS SUBDIRS.doc-build-backup @@ -162,6 +174,11 @@ echo "*** CREATING XML SOURCES IN source/yast2 ***" >> ${BUILDLOG} 2>>${BUILDLOG} cd ${SRCDIR} cd yast2 + +NEEDED_PACKAGES=`grep "^BuildRequires" yast2*.spec.in | sed 's/BuildRequires:[ \t]\+//' | sed s'/.*\.spec\.in://'` +rpm -q $NEEDED_PACKAGES || zypper in $NEEDED_PACKAGES || (echo "1 exiting..." && exit 42) +checkforerrors + echo "| Current directory: "`pwd` make -f Makefile.cvs >> ${BUILDLOG} 2>>${BUILDLOG} checkforerrors @@ -176,6 +193,11 @@ echo "*** CREATING XML SOURCES IN source/installation ***" >> ${BUILDLOG} 2>>${BUILDLOG} cd ${SRCDIR} cd installation + +NEEDED_PACKAGES=`grep "^BuildRequires" yast2*.spec.in | sed 's/BuildRequires:[ \t]\+//' | sed s'/.*\.spec\.in://'` +rpm -q $NEEDED_PACKAGES || zypper in $NEEDED_PACKAGES || (echo "1 exiting..." && exit 42) +checkforerrors + echo "| Current directory: "`pwd` make -f Makefile.cvs >> ${BUILDLOG} 2>>${BUILDLOG} checkforerrors @@ -204,8 +226,14 @@ # Creating pkg-bindings cd ${SRCDIR} +cd pkg-bindings + +NEEDED_PACKAGES=`grep "^BuildRequires" yast2*.spec.in | sed 's/BuildRequires:[ \t]\+//' | sed s'/.*\.spec\.in://'` +rpm -q $NEEDED_PACKAGES || zypper in $NEEDED_PACKAGES || (echo "1 exiting..." && exit 42) +checkforerrors + make -f Makefile.cvs >> ${BUILDLOG} 2>>${BUILDLOG} -cd pkg-bindings/doc +cd doc echo "| Current directory: "`pwd` rm -rf html >> ${BUILDLOG} 2>>${BUILDLOG} make >> ${BUILDLOG} 2>>${BUILDLOG} -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
locilka@svn.opensuse.org