added checking of result when building demos
Uri Guttman [Tue, 22 Sep 2009 22:11:13 +0000 (18:11 -0400)]
BuildStem.pm

index 53b52dd..2f9f771 100644 (file)
@@ -48,8 +48,11 @@ sub build_demo_scripts {
     my @files = <bin/demo/*>;
 
     for my $file (@files) {
+
        my $result = $self->copy_if_modified(
                    $file, $demo_dir, 'flatten');
+
+       next unless $result ;
        
        $self->fix_shebang_line($result) if $self->is_unixish();
        $self->make_executable($result);