[asterisk-commits] tzafrir: branch group/zapata_conf r96620 - /team/group/zapata_conf/contrib/sc...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 4 18:46:48 CST 2008


Author: tzafrir
Date: Fri Jan  4 18:46:47 2008
New Revision: 96620

URL: http://svn.digium.com/view/asterisk?view=rev&rev=96620
Log:
Generate live/asterisk, which is acts like asterisk and uses our live
copy.

Modified:
    team/group/zapata_conf/contrib/scripts/live_ast

Modified: team/group/zapata_conf/contrib/scripts/live_ast
URL: http://svn.digium.com/view/asterisk/team/group/zapata_conf/contrib/scripts/live_ast?view=diff&rev=96620&r1=96619&r2=96620
==============================================================================
--- team/group/zapata_conf/contrib/scripts/live_ast (original)
+++ team/group/zapata_conf/contrib/scripts/live_ast Fri Jan  4 18:46:47 2008
@@ -23,11 +23,25 @@
 # your source distribution and run it from there.
 #
 # Example usage:
-# ./configure
-# make
-# contrib/scripts/live_ast install
-# contrib/scripts/live_ast samples
-# contrib/scripts/live_ast run -c
+#   ./configure
+#   make
+#   contrib/scripts/live_ast install
+#   contrib/scripts/live_ast samples
+#   contrib/scripts/live_ast run
+#   contrib/scripts/live_ast run -r
+#
+# A standard debugging cycle of a code in a module:
+#   # edit apps/app_skel.c
+#   contrib/scripts/live_ast install
+#   contrib/scripts/live_ast run -r 
+#   # and in the CLI:
+#   module unload app_skel.so
+#   module load app_skel.so
+#
+# If you have external scripts that run asterisk, use the script 
+# live/asterisk that is generated by the 'samples' command. In this case you
+# should probably also rem-out the line 'astvarrundir' and maybe also 
+# 'astetcdir' in live/etc/asterisk.conf .
 
 BASE_DIR=$PWD/live
 AST_CONF=$BASE_DIR/etc/asterisk/asterisk.conf
@@ -81,6 +95,7 @@
   make samples DESTDIR=$BASE_DIR
   cat <<EOF >$AST_CONF
 [directories]
+; rem-out any of the following to use Asterisk's defaults:
 astetcdir    => $BASE_DIR/etc/asterisk
 astmoddir    => $BASE_DIR/usr/lib/asterisk/modules
 astvarlibdir => $BASE_DIR/var/lib/asterisk
@@ -93,6 +108,13 @@
   cat <<EOF >$GDB_INIT
 set args -C $AST_CONF -c
 EOF
+cat <<EOF >$BASE_DIR/asterisk
+#!/bin/sh
+# a wrapper to run asterisk from the "live" copy:
+cd $PWD
+exec $0 run "\$@"
+EOF
+  chmod +x $BASE_DIR/asterisk
   ;;
 run)
   shift




More information about the asterisk-commits mailing list