]> git.openpandora.org Git - pandora-libraries.git/commitdiff
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 fdf14280d558a27be11f5d1fe77208c8e0b1eb0f..e17b2a1c843d753d0b010f3e660f978e0ad6df9f 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 023fa73b0d379da414127089199f8ae4bc3cfa7f..98b9bc762aebda80599ba75818c389c945772d88 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