Re: Loss of Announcements - Nodes 4480, 4490 & 4677

David Cameron - IRLP
 

Yes, but the old version if sox doesn't have a version flag....

It really is not an easy fix either way. 

Dave

-------- Original message --------
From: Nosey Nick VA3NNW <irlp@...>
Date: 11/30/19 1:09 PM (GMT-08:00)
To: IRLP@irlp.groups.io
Subject: Re: [IRLP] Loss of Announcements - Nodes 4480, 4490 & 4677

David Cameron - IRLP wrote:
> I have made a new update to wavplay to cover the "old" style embedded
> nodes that run slackware.
> The problem is now I am using an OS detection routine to determine
> (hopefully) which version of sox will properly create the audio files.

You don't technically care about the *OS Version* though, do you? You
care about the *SOX version*, so perhaps you would prefer to do
something safer like...

SOXVER=$(sox --version) # ...
case "$SOXVER" in
  *v12.*) sox --how-old-do-you-need-to-go? ;;
  *v13.*) sox --some-old-behaviour-here ;;
  *v14.*) sox --some-newer-behaviour-here ;;
  *c15.*) sox --do-you-wanna-guess-at-future-behaviour-too? ;;
  *) echo "Don't know what to do with $VER" ; exit 9 ;;
esac

Yes, BASH has case statements! ... or do you need to support REALLY
REALLY old versions of BASH too?    :-O

Nick VA3NNW

--
"Nosey" Nick Waterman, VA3NNW/G7RZQ, K2 #5209.
use Std::Disclaimer;    sig@...
If you can stay in love for more than two years, you're on something.




Join IRLP@irlp.groups.io to automatically receive all group messages.