Ajout filtre sur gene doc doxygen pour gerer automatiquement les versions
This commit is contained in:
parent
7f11897409
commit
1a4be7b31e
@ -2,8 +2,7 @@
|
||||
#--------------------------------------------------------------------
|
||||
# Lance la generation de la doc dev doxygen
|
||||
#
|
||||
# $Id$
|
||||
# $Source$
|
||||
# \version $Id$
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
# Detecte repertoire du script
|
||||
@ -11,6 +10,11 @@
|
||||
$DIR||='.';
|
||||
$DIR =~ s/([^\/\\])[\\\/]+$/$1/;
|
||||
|
||||
$OPTIONS="";
|
||||
$OPTIONS="-d Preprocessor";
|
||||
|
||||
$CONFFILE="doc/dev/dolibarr-doxygen.conf";
|
||||
$CONFFILE="doc/dev/dolibarr-doxygen2.conf";
|
||||
|
||||
use Cwd;
|
||||
my $dir = getcwd;
|
||||
@ -25,7 +29,7 @@ if (! -s "doc/dev/dolibarr-doxygen.conf") {
|
||||
}
|
||||
|
||||
print "Running doxygen, please wait...\n";
|
||||
$result=`doxygen doc/dev/dolibarr-doxygen.conf 2>&1`;
|
||||
$result=`doxygen $OPTIONS $CONFFILE 2>&1`;
|
||||
|
||||
print $result;
|
||||
|
||||
|
||||
@ -2,9 +2,10 @@
|
||||
#--------------------------------------------------------------------
|
||||
# Script filtrage des sources Dolibarr pour doxygen
|
||||
#
|
||||
# $Id$
|
||||
# \version $Id$
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
# Usage: dolibarr-doxygen-getversion.pl pathtofilefromdolibarrroot
|
||||
|
||||
$file=$ARGV[0];
|
||||
|
||||
@ -14,7 +15,7 @@ while (<FILE>)
|
||||
if ($_ =~ /\\version\s/i)
|
||||
{
|
||||
$_ =~ s/\$Id://i;
|
||||
$_ =~ s/Exp \$//i;
|
||||
$_ =~ s/(Exp|)\s\$$//i;
|
||||
$_ =~ s/(\\version\s+)[^\s]+\s/$1/i;
|
||||
$_ =~ s/(\w)\s(\w)/$1_$2/g;
|
||||
}
|
||||
|
||||
@ -2,9 +2,10 @@
|
||||
#--------------------------------------------------------------------
|
||||
# Script recup version d'un source
|
||||
#
|
||||
# $Id$
|
||||
# \version $Id$
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
# Usage: dolibarr-doxygen-getversion.pl pathtofilefromdolibarrroot
|
||||
|
||||
$file=$ARGV[0];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user