Added pnd_run to 'make deploy' target
authorskeezix <skeezix@flotsam-vm.(none)>
Mon, 16 Nov 2009 17:11:35 +0000 (12:11 -0500)
committerskeezix <skeezix@flotsam-vm.(none)>
Mon, 16 Nov 2009 17:11:35 +0000 (12:11 -0500)
Added an error comment to pnd_run

Makefile
apps/pnd_run.c

index fdf1428..e17b2a1 100644 (file)
--- 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
index 023fa73..98b9bc7 100644 (file)
@@ -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