From: skeezix Date: Mon, 16 Nov 2009 17:11:35 +0000 (-0500) Subject: Added pnd_run to 'make deploy' target X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81cfdc86ec0be72304b8805523e3058b8341c0b6;p=pandora-libraries.git Added pnd_run to 'make deploy' target Added an error comment to pnd_run --- diff --git a/Makefile b/Makefile index fdf1428..e17b2a1 100644 --- a/Makefile +++ b/Makefile @@ -78,6 +78,7 @@ deploy: # copy in goodies cp libpnd* deployment/usr/lib cp bin/pndnotifyd deployment/usr/bin + cp bin/pnd_run deployment/usr/bin cp testdata/scripts/* deployment/usr/pandora/scripts # copy in freebee .pnd apps to /usr/pandora/apps # add pndnotify to etc/rc/startup-whatever diff --git a/apps/pnd_run.c b/apps/pnd_run.c index 023fa73..98b9bc7 100644 --- a/apps/pnd_run.c +++ b/apps/pnd_run.c @@ -170,12 +170,16 @@ int main ( int argc, char *argv[] ) { clock = atoi ( pnd_pxml_get_clockspeed ( h ) ); } - pnd_apps_exec ( pnd_run, pndfile, - pnd_pxml_get_unique_id ( h ), - pnd_pxml_get_exec ( h ), - pnd_pxml_get_startdir ( h ), - clock, - options ); + if ( ! pnd_apps_exec ( pnd_run, pndfile, + pnd_pxml_get_unique_id ( h ), + pnd_pxml_get_exec ( h ), + pnd_pxml_get_startdir ( h ), + clock, + options ) + ) + { + printf ( "ERROR: PXML.xml data is bad\n" ); + } return ( 0 ); } // main