aports/testing/faust/busybox.patch

28 lines
1.4 KiB
Diff

ls -f doesn't exist so just pass the install location
--
diff --git a/tools/faust2appls/faust2lv2 b/tools/faust2appls/faust2lv2
index 8fa948f..7527385 100755
--- a/tools/faust2appls/faust2lv2
+++ b/tools/faust2appls/faust2lv2
@@ -21,7 +21,7 @@
# that you can run the script from the faust-lv2 source directory. You can
# also specify this explicitly by setting the FAUSTLIB environment variable
# accordingly.
-[ -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)")
+[ -z "$FAUSTLIB" ] && FAUSTLIB=/usr/share/faust
[ -z "$FAUSTLIB" ] && FAUSTLIB="$PWD"
# defaults (these can be changed with the options listed below)
diff --git a/tools/faust2appls/faust2pure b/tools/faust2appls/faust2pure
index 265e4c4..e50478d 100755
--- a/tools/faust2appls/faust2pure
+++ b/tools/faust2appls/faust2pure
@@ -6,7 +6,7 @@
# locations here, and fall back to the current directory if the file isn't
# found. You can also specify this explicitly by setting the FAUSTLIB
# environment variable accordingly.
-[ -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)")
+[ -z "$FAUSTLIB" ] && FAUSTLIB=/usr/share/faust
[ -z "$FAUSTLIB" ] && FAUSTLIB="$PWD"
# defaults (these can be changed with the options listed below)