Qual: Removed had coded value for version.
This commit is contained in:
parent
2d524f2edc
commit
f91e847562
@ -30,8 +30,25 @@ if (! -s $CONFFILE)
|
|||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
print "Running doxygen, please wait...\n";
|
$SOURCE="../..";
|
||||||
$result=`doxygen $OPTIONS $CONFFILE 2>&1`;
|
|
||||||
|
# Get version $MAJOR, $MINOR and $BUILD
|
||||||
|
$result = open( IN, "< " . $SOURCE . "/htdocs/filefunc.inc.php" );
|
||||||
|
if ( !$result ) { die "Error: Can't open descriptor file " . $SOURCE . "/htdocs/filefunc.inc.php\n"; }
|
||||||
|
while (<IN>) {
|
||||||
|
if ( $_ =~ /define\('DOL_VERSION','([\d\.a-z\-]+)'\)/ ) { $PROJVERSION = $1; break; }
|
||||||
|
}
|
||||||
|
close IN;
|
||||||
|
($MAJOR,$MINOR,$BUILD)=split(/\./,$PROJVERSION,3);
|
||||||
|
if ($MINOR eq '') { die "Error can't detect version into ".$SOURCE . "/htdocs/filefunc.inc.php"; }
|
||||||
|
|
||||||
|
|
||||||
|
$version=$MAJOR.".".$MINOR.".".$BUILD;
|
||||||
|
|
||||||
|
|
||||||
|
print "Running doxygen for version ".$version.", please wait...\n";
|
||||||
|
print "cat $CONFFILE | sed -e 's/x\.y\.z/".$version."/' | doxygen $OPTIONS - 2>&1\n";
|
||||||
|
$result=`cat $CONFFILE | sed -e 's/x\.y\.z/$version/' | doxygen $OPTIONS - 2>&1`;
|
||||||
|
|
||||||
print $result;
|
print $result;
|
||||||
|
|
||||||
|
|||||||
@ -31,7 +31,7 @@ PROJECT_NAME = dolibarr
|
|||||||
# This could be handy for archiving the generated documentation or
|
# This could be handy for archiving the generated documentation or
|
||||||
# if some version control system is used.
|
# if some version control system is used.
|
||||||
|
|
||||||
PROJECT_NUMBER = 3.5
|
PROJECT_NUMBER = x.y.z
|
||||||
|
|
||||||
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
|
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
|
||||||
# base path where the generated documentation will be put.
|
# base path where the generated documentation will be put.
|
||||||
|
|||||||
@ -35,15 +35,15 @@ File added into doxygen generated documentation
|
|||||||
<div class="bannergroupmybanner">
|
<div class="bannergroupmybanner">
|
||||||
|
|
||||||
<div class="banneritemmybanner">
|
<div class="banneritemmybanner">
|
||||||
<script type="text/javascript"><!--
|
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||||
google_ad_client = "pub-1071905880519467";
|
<!-- BAN_728x90_DOXYGEN -->
|
||||||
/* PUBBANDEAUDOLIBARR */
|
<ins class="adsbygoogle"
|
||||||
google_ad_slot = "1421205532";
|
style="display:inline-block;width:728px;height:90px"
|
||||||
google_ad_width = 468;
|
data-ad-client="ca-pub-1465985984238664"
|
||||||
google_ad_height = 60;
|
data-ad-slot="4297390217"></ins>
|
||||||
//-->
|
<script>
|
||||||
|
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
|
|
||||||
<div class="clr"></div>
|
<div class="clr"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user