提交 5531b85b authored 作者: Michael Collins's avatar Michael Collins

Add html directory for output

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk/scripts/contrib@12911 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 5c036367
......@@ -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';
......
......@@ -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 @@ grep -n "_VARIABLE" $SRCDIR/src/include/*h > $TMPDIR/header-defs.txt
# 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
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论