Skip to content

Commit

Permalink
Add standard faust2appls help
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bartlett committed May 22, 2024
1 parent 943f5b5 commit 6cd99d2
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions srcs/faust-stratus/bin/faust2stratus
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,34 @@
#####################################################################
# #
# Compiles Faust programs for the Chaos Stratus pedal #
# (c) Grame, 2017-2020 #
# #
#####################################################################

. faustpath

ARCHFILE=${STRATUS_ARCH:-stratus.cpp}
STRATUS_EFFECTS_DIR=${STRATUS_EFFECTS_DIR:-/opt/update/sftp/firmware/effects}
: ${CXX:=g++}
which "$CXX" > /dev/null && CPPCOMPILE=true

. faustpath
. usage.sh

echoHelp()
{
usage faust2stratus "[options] [Faust options] <file.dsp>"
platform "Chaos Audio Stratus"
echo "Compiles Faust programs for the Chaos Audio Stratus pedal"
option "-nocppc" "Do not compile the generated CPP source files"
option "-stratusinstall" "Installs the effect library on the stratus pedal if the build was performed on the pedal and the DSP file suitably constructed"
option "Faust options"
exit
}

if [ "$#" -eq 0 ]; then
echo 'Please, provide a Faust file to process !'
echo ''
echoHelp
fi

#
# Supporting various compile platforms - but, obviously, the first is the most important
#
Expand Down Expand Up @@ -41,7 +58,9 @@ STRATUSCLASS=dsp
while [[ "$1" ]]; do
opt=$1
shift
if [[ "$opt" =~ ^--?"stratusc"$ ]]; then
if [[ "$opt" =~ ^--?"help"$ || $opt == "-h" ]]; then
echoHelp
elif [[ "$opt" =~ ^--?"stratusc"$ ]]; then
# Ignore obsolete option
true
elif [[ "$opt" =~ ^--?"stratusinstall"$ ]]; then
Expand Down

0 comments on commit 6cd99d2

Please sign in to comment.