That worked great except that the "svn export" and the "svn://....." were supposed to be on the same line. maybe my e-mail or the mailing list seperated it because it was too long. Once I joined them together, I caught it before trying it, it worked exactly as it should. Thanks for the help, perhaps you could get this into ACID permanantly. Or at least posted on the app_rpt web site. Thanks, Jeff ----- Original Message ----- From: "Stephen - K1LNX" <k1lnx@k1lnx.net> To: "Eagle Link Customer Service" <services@eaglelink.net> Cc: "James Nessen" <nessenj@jimsoffice.org>; <app_rpt-users@qrvc.com> Sent: Thursday, July 30, 2009 7:55 PM Subject: Re: [App_rpt-users] Update app_rpt?
I love scripts, and I just so happened to be sitting here working on my own, so good timing lol:
#!/bin/bash # script to update to latest app_rpt.c file from SVN repository
# let's stop asterisk first /root/acid/astdn.sh
cd /usr/src/asterisk/apps mv app_rpt.c app_rpt.c.original svn export svn://qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk/asterisk/apps/app_rpt.c cd ..
# let's compile and if it fails notify me make if [ $? -gt 0 ] then echo "Failure: Unable to compile app_rpt.c!" exit 255 fi make install
# restart asterisk /root/acid/astup.sh
I don't have an ACID install to test this on (I use Debian), and this was quick and dirty based on what you listed below, so if you try and it breaks you get to keep both pieces :D
On another note, I finally got around to updating my scripts for installing app_rpt under Debian Lenny (it's been on my to do list since Lenny was released, yea I know :P):
http://www.k1lnx.net/debapprpt.tar.gz
This will build a fully functioning app_rpt system from the latest SVN sources at QRVC.
73 Stephen K1LNX
-- ********************************** Stephen Brown - ARS K1LNX Johnson City, TN EM86 http://www.k1lnx.net google voice: 423-665-9367 **********************************