projects/aports·blob master · refs

28 lines · 1.4 KiB

1ls -f doesn't exist so just pass the install location
2--
3diff --git a/tools/faust2appls/faust2lv2 b/tools/faust2appls/faust2lv2
4index 8fa948f..7527385 100755
5--- a/tools/faust2appls/faust2lv2
6+++ b/tools/faust2appls/faust2lv2
7@@ -21,7 +21,7 @@
8 # that you can run the script from the faust-lv2 source directory. You can
9 # also specify this explicitly by setting the FAUSTLIB environment variable
10 # accordingly.
11-[ -z "$FAUSTLIB" ] && FAUSTLIB=$(dirname "$((ls -f /usr/share/faust/lv2ui.cpp /usr/local/share/faust/lv2ui.cpp /opt/local/share/faust/lv2ui.cpp "$PWD/lv2ui.cpp" 2>/dev/null)|tail -1)")
12+[ -z "$FAUSTLIB" ] && FAUSTLIB=/usr/share/faust
13 [ -z "$FAUSTLIB" ] && FAUSTLIB="$PWD"
14
15 # defaults (these can be changed with the options listed below)
16diff --git a/tools/faust2appls/faust2pure b/tools/faust2appls/faust2pure
17index 265e4c4..e50478d 100755
18--- a/tools/faust2appls/faust2pure
19+++ b/tools/faust2appls/faust2pure
20@@ -6,7 +6,7 @@
21 # locations here, and fall back to the current directory if the file isn't
22 # found. You can also specify this explicitly by setting the FAUSTLIB
23 # environment variable accordingly.
24-[ -z "$FAUSTLIB" ] && FAUSTLIB=$(dirname "$((ls -f /usr/share/faust/pure.cpp /usr/local/share/faust/pure.cpp /opt/local/share/faust/pure.cpp "$PWD/pure.cpp" 2>/dev/null)|tail -1)")
25+[ -z "$FAUSTLIB" ] && FAUSTLIB=/usr/share/faust
26 [ -z "$FAUSTLIB" ] && FAUSTLIB="$PWD"
27
28 # defaults (these can be changed with the options listed below)