[Asterisk-Dev] Adding another dependability

Edwin Groothuis edwin at mavetju.org
Mon May 16 01:51:39 MST 2005


On Mon, May 16, 2005 at 10:00:09AM +0200, Olle E. Johansson wrote:
> The vercomp.sh depends on "/bin/bash" - which of course is installed
> somewhere else on a FreeBSD server and in a lot of my systems is not
> installed at all.

[/home/edwin/asterisk/asterisk] root at tardis>cat /etc/redhat-release 
Fedora Core release 2 (Tettnang)
[/home/edwin/asterisk/asterisk] root at tardis>uname -a 
Linux tardis.barnet.com.au 2.6.5-1.358smp #1 SMP Sat May 8 09:25:36 EDT 2004 i686 i686 i386 GNU/Linux

[/home/edwin/asterisk/asterisk] root at tardis>./vercomp.sh flex = 2.5.31
./vercomp.sh: line 27: conditional binary operator expected
./vercomp.sh: line 27: syntax error near `=~'
./vercomp.sh: line 27: `[[ $progver1 =~ '([^ ]+$)'  ]]'

Somebody actually managed to get it running?

> Is it possible for a good shell hacker to rewrite this to standard
> boring bourne shell so that we do not have to add another dependability
> to outside software in Asterisk?

I'll give it a try, but don't expect it to give the same results
as it does do now :-)

Edwin
-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin at mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/



More information about the asterisk-dev mailing list