summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjules on spawn <spawn@cortex>2018-04-10 15:20:00 +0200
committerjules on spawn <spawn@cortex>2018-04-10 15:20:00 +0200
commit3ea2f8f581a857920b7c2f4d1d3a0a12401758ec (patch)
treea935384051380af265a74ad5c0b669d31e6ae1b2
parentf3d8faecdcf0de97e8027ca9d80315b58fab700a (diff)
build
-rw-r--r--latest.pl17
1 files changed, 16 insertions, 1 deletions
diff --git a/latest.pl b/latest.pl
index f1d1aa9..33bfb73 100644
--- a/latest.pl
+++ b/latest.pl
@@ -23,6 +23,20 @@ sub process($){
}
closedir DIR;
+ my $sampz = $path . "samples/";
+ return 0 unless -e $sampz;
+ my $c = 0;
+ opendir DIR, $sampz or die $!;
+ while (readdir DIR) {
+ next unless /wav$/;
+ $c += 1;
+ last;
+ }
+ closedir DIR;
+ if ($c == 0) {
+ return 0;
+ }
+
my @epoch = split("-", $ep);
$name .= "-" . $epoch[0];
@@ -37,13 +51,14 @@ sub process($){
return 1;
}
- print $name . "\n";
if (!$opt_l) {
return 0;
}
print "\n";
print "_______________________________________________________________\n";
print "\n";
+ print $name . ", $c samples\n";
+ print "\n";
system('/bin/bash', 'mix.sh', $path, $name);
return 0;
}