blob: 2515e11847d6bbbbc2bd401a6569f2b22731ebb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/bash
set -e
if [ -d bin ]; then
cd bin
else
echo "Please run this script from the source root folder"
exit
fi
PWD=`dirname $0`
if [ -f ../../$PWD/lv2_ttl_generator.exe ]; then
GEN=../../$PWD/lv2_ttl_generator.exe
EXT=dll
else
GEN=../../$PWD/lv2_ttl_generator
if [ -d /Library/Audio ]; then
EXT=dylib
else
EXT=so
fi
fi
FOLDERS=`find . -type d -name \*.lv2`
for i in $FOLDERS; do
cd $i
FILE=`ls *.$EXT | sort | head -n 1`
$GEN ./$FILE
cd ..
done
|