[Freeswitch-svn] [commit] r12911 - freeswitch/trunk/scripts/contrib/mcollins
FreeSWITCH SVN
mcollins at freeswitch.org
Fri Apr 3 12:21:26 PDT 2009
Author: mcollins
Date: Fri Apr 3 14:21:26 2009
New Revision: 12911
Log:
Add html directory for output
Modified:
freeswitch/trunk/scripts/contrib/mcollins/create-chanvars-html-page.pl
freeswitch/trunk/scripts/contrib/mcollins/extract-fs-vars-from-source-tree.sh
Modified: freeswitch/trunk/scripts/contrib/mcollins/create-chanvars-html-page.pl
==============================================================================
--- freeswitch/trunk/scripts/contrib/mcollins/create-chanvars-html-page.pl (original)
+++ freeswitch/trunk/scripts/contrib/mcollins/create-chanvars-html-page.pl Fri Apr 3 14:21:26 2009
@@ -60,17 +60,19 @@
# Get the cmd line options
my $srcdir = '/usr/src/freeswitch.trunk';
my $tmpdir = '/tmp';
+my $htmldir = '/usr/local/freeswitch/htdocs';
## Use these as defaults unless command line args are supplied
GetOptions( 'srcdir=s' => \$srcdir,
'tmpdir=s' => \$tmpdir,
+ 'htmldir=s' => \$htmldir,
);
my $srcdirlen = length $srcdir; # calculate this once since it doesn't change
my $headerfile = $tmpdir . "/header-defs.txt";
my $datafile = $tmpdir . "/get-set-vars.txt";
-my $htmlfile = $tmpdir . "/chanvars.html";
+my $htmlfile = $htmldir . "/chanvars.html";
my $site = 'http://fisheye.freeswitch.org/browse/FreeSWITCH';
Modified: freeswitch/trunk/scripts/contrib/mcollins/extract-fs-vars-from-source-tree.sh
==============================================================================
--- freeswitch/trunk/scripts/contrib/mcollins/extract-fs-vars-from-source-tree.sh (original)
+++ freeswitch/trunk/scripts/contrib/mcollins/extract-fs-vars-from-source-tree.sh Fri Apr 3 14:21:26 2009
@@ -11,9 +11,10 @@
#
# MC 2009-04-02
-# Change these vars if your source directory is different
+# Change these vars if your directories are different
SRCDIR=/usr/src/freeswitch.trunk
TMPDIR=/tmp
+HTMLDIR=/usr/local/freeswitch/htdocs
# Grep the variables, then grep the aliases in the header files
echo Searching source tree for channel variable set/get...
@@ -24,4 +25,4 @@
# launch perl script here
echo Creating HTML file in $TMPDIR directory
-./create-chanvars-html-page.pl --srcdir=$SRCDIR --tmpdir=$TMPDIR
+./create-chanvars-html-page.pl --srcdir=$SRCDIR --tmpdir=$TMPDIR --htmldir=$HTMLDIR
More information about the Freeswitch-svn
mailing list