[Asterisk-Users] Any way to not overwrite sound files on compile?

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Fri Sep 30 08:49:33 MST 2005


On Friday 30 September 2005 11:39, Kevin P. Fleming wrote:
> That is correct. 'make install' installs the standard sound files along
> with the binaries; if we did not do that, then when the code had been
> changed to required new sound files they would not be present...

So wrap the install binary such that it checks for the existence first.

> How about if we add a 'post-install' step in the Makefile, that would
> run a local script/program if specified, which could copy your sound
> files back into place?

Sounds tedious.  Why not simply emit "cowardly refusing to overwrite existing 
sound file 'chilliconcarneexplosivegastrointestinalnoise.gsm'" with a "use 
make install-force" to overwrite everything" message?

-A.



More information about the asterisk-users mailing list