# using the new lowercase names, and handling legacy
[ -d PLCAPI ] || ln -s plcapi PLCAPI
-[ -d Monitor ] || ln -s monitor Monitor
[ -d NodeManager ] || ln -s nodemanager NodeManager
[ -d MyPLC ] || ln -s myplc MyPLC
make -C doc NMAPI.html
popd
-pushd Monitor
-# beware that making the pdf file somehow overwrites the html
-make -C docs Monitor.pdf
-rm -f docs/Monitor.html
-make -C docs Monitor.html
-popd
-
%install
for ext in pdf html; do
install -D -m 444 PLCAPI/doc/PLCAPI.$ext $RPM_BUILD_ROOT/var/www/html/planetlab/doc/PLCAPI.$ext
install -D -m 444 NodeManager/doc/NMAPI.$ext $RPM_BUILD_ROOT/var/www/html/planetlab/doc/NMAPI.$ext
- install -D -m 444 Monitor/docs/Monitor.$ext $RPM_BUILD_ROOT/var/www/html/planetlab/doc/Monitor.$ext
done
./MyPLC/docbook2drupal.sh "PLC API Documentation (%{pldistro})" \
./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
-./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
%clean
rm -rf $RPM_BUILD_ROOT