Browse Source

Handle paths with spaces when generating ttl (#46)

pull/52/merge
Patrick Desaulniers Filipe Coelho <falktx@falktx.com> 5 years ago
parent
commit
5a06a07bc0
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      utils/generate-ttl.sh

+ 6
- 6
utils/generate-ttl.sh View File

@@ -9,13 +9,13 @@ else
exit
fi

PWD=`dirname $0`
PWD="$(dirname "$0")"

if [ -f $PWD/lv2_ttl_generator.exe ]; then
GEN=$PWD/lv2_ttl_generator.exe
if [ -f "$PWD/lv2_ttl_generator.exe" ]; then
GEN="$PWD/lv2_ttl_generator.exe"
EXT=dll
else
GEN=$PWD/lv2_ttl_generator
GEN="$PWD/lv2_ttl_generator"
if [ -d /Library/Audio ]; then
EXT=dylib
else
@@ -27,7 +27,7 @@ FOLDERS=`find . -type d -name \*.lv2`

for i in $FOLDERS; do
cd $i
FILE=`ls *.$EXT | sort | head -n 1`
$GEN ./$FILE
FILE="$(ls *.$EXT | sort | head -n 1)"
"$GEN" "./$FILE"
cd ..
done

Loading…
Cancel
Save