diff options
| author | jules on spawn <spawn@cortex> | 2018-04-10 15:20:00 +0200 |
|---|---|---|
| committer | jules on spawn <spawn@cortex> | 2018-04-10 15:20:00 +0200 |
| commit | 3ea2f8f581a857920b7c2f4d1d3a0a12401758ec (patch) | |
| tree | a935384051380af265a74ad5c0b669d31e6ae1b2 | |
| parent | f3d8faecdcf0de97e8027ca9d80315b58fab700a (diff) | |
build
| -rw-r--r-- | latest.pl | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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; } |
