1
0
Fork 0
mirror of https://github.com/kastdeur/pipeband-music.git synced 2025-05-15 12:29:22 +02:00

Script for tune overview, small updates to blackbear and mackenzie hldrs

This commit is contained in:
Eric Teunis de Boone 2016-10-14 21:32:51 +02:00
parent a598483dad
commit c2a6e9f485
6 changed files with 55 additions and 16 deletions

41
tuneoverview Normal file
View file

@ -0,0 +1,41 @@
#!/bin/bash
LEAVEOUT=" sets/ template/ standards/ "
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ECHO_COUNT=":"
INDENT="$(echo -e '\t')"
i=0
j=0
k=0
tot=0
for d in $DIR/*/
do
if [[ "$LEAVOUT" =~ "${d//$DIR\/}" ]]; then
echo "Leaving out"
break
fi
i=$(($i+1))
echo "${d//$DIR\/}"
for t in $d/*/
do
if [ "$t" = "$d/*/" ]; then
break
fi
j=$(($j+1))
echo "$INDENT${t//$d\/}"
for inst in $t/*.ly
do
if [ "$inst" = "$t/*.ly" ]; then
break
fi
k=$(($k+1))
tot=$(($tot+1))
echo "$INDENT$INDENT${inst//$t\/}"
done
$ECHO_COUNT "$INDENT$k files"
k=0
done
$ECHO_COUNT "$j tunes"
echo ""
done
$ECHO_COUNT "${tot} Files"