From 15678418a9a7e97678333d92a344b49d37b75248 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 4 May 2022 16:56:02 +0200 Subject: [PATCH] another patch from Thomas --- myplc-docs.spec | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/myplc-docs.spec b/myplc-docs.spec index 009472c..689b469 100644 --- a/myplc-docs.spec +++ b/myplc-docs.spec @@ -39,33 +39,33 @@ rm -rf $RPM_BUILD_ROOT [ -d myplc ] || ln -s MyPLC myplc [ -d plcapi ] || ln -s PLCAPI plcapi [ -d nodemanager ] || ln -s NodeManager nodemanager -[ -d monitor ] || ln -s Monitor monitor +[ -d monitor ] || ln -s Monitor monitor pushd plcapi # june2011 & f12, latex issues weird warnings, might need to try twice -make -C doc PLCAPI.pdf || make -C doc PLCAPI.pdf +make -C doc PLCAPI.pdf || make -C doc PLCAPI.pdf # beware that making the pdf file somehow overwrites the html rm -f doc/PLCAPI.html -make -C doc PLCAPI.html || make -C doc PLCAPI.html +make -C doc PLCAPI.html || make -C doc PLCAPI.html popd # nodemanager is now optional -if [ -d nodemanager ]; then +if [ -d nodemanager/doc ] ; then pushd nodemanager # beware that making the pdf file somehow overwrites the html make -C doc NMAPI.pdf || make -C doc NMAPI.pdf rm -f doc/NMAPI.html -make -C doc NMAPI.html || make -C doc NMAPI.html +make -C doc NMAPI.html || make -C doc NMAPI.html popd fi # not everyone rebuilds monitor, so make it optional -if [ -d monitor ] ; then +if [ -d monitor/docs ] ; then pushd monitor # beware that making the pdf file somehow overwrites the html -make -C docs Monitor.pdf || make -C docs Monitor.pdf +make -C docs Monitor.pdf || make -C docs Monitor.pdf rm -f docs/Monitor.html -make -C docs Monitor.html || make -C docs Monitor.html +make -C docs Monitor.html || make -C docs Monitor.html popd fi @@ -73,22 +73,26 @@ fi for ext in pdf html; do install -D -m 444 plcapi/doc/PLCAPI.$ext $RPM_BUILD_ROOT/var/www/html/planetlab/doc/PLCAPI.$ext + if [ -d nodemanager/doc ] ; then install -D -m 444 nodemanager/doc/NMAPI.$ext $RPM_BUILD_ROOT/var/www/html/planetlab/doc/NMAPI.$ext - if [ -d monitor ] ; then + fi + if [ -d monitor/docs ] ; then install -D -m 444 monitor/docs/Monitor.$ext $RPM_BUILD_ROOT/var/www/html/planetlab/doc/Monitor.$ext fi done ./myplc/docbook2drupal.sh "PLC API Documentation (%{pldistro})" \ $RPM_BUILD_ROOT/var/www/html/planetlab/doc/PLCAPI.html \ - $RPM_BUILD_ROOT/var/www/html/planetlab/doc/PLCAPI.php + $RPM_BUILD_ROOT/var/www/html/planetlab/doc/PLCAPI.php +if [ -d nodemanager/doc ] ; then ./myplc/docbook2drupal.sh "Node Manager API Documentation (%{pldistro})" \ $RPM_BUILD_ROOT/var/www/html/planetlab/doc/NMAPI.html \ - $RPM_BUILD_ROOT/var/www/html/planetlab/doc/NMAPI.php -if [ -d monitor ] ; then + $RPM_BUILD_ROOT/var/www/html/planetlab/doc/NMAPI.php +fi +if [ -d monitor/docs ] ; then ./myplc/docbook2drupal.sh "Monitor API Documentation (%{pldistro})" \ $RPM_BUILD_ROOT/var/www/html/planetlab/doc/Monitor.html \ - $RPM_BUILD_ROOT/var/www/html/planetlab/doc/Monitor.php + $RPM_BUILD_ROOT/var/www/html/planetlab/doc/Monitor.php fi %clean @@ -411,7 +415,7 @@ rm -rf $RPM_BUILD_ROOT - figures in doc package * Fri May 09 2008 Thierry Parmentelat - MyPLC-4.2-11 -- no more doc packaged outside of myplc-docs - doc/ cleaned up +- no more doc packaged outside of myplc-docs - doc/ cleaned up - chroot packaging does not have docs anymore - 'cvs' and 'dev' not required from myplc-native anymore - cosmetic change in kml output -- 2.43.0