Changed the scripts so that they include the date in the README.txt as well

as generate a dlib/revision.h file.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403438
This commit is contained in:
Davis King 2010-02-05 20:51:34 +00:00
parent 70a0a2994d
commit bedbe521fb
5 changed files with 16 additions and 0 deletions

View File

@ -43,6 +43,11 @@
builds correctly.
</p>
<p>
Finally, note that <a href="dlib/revision.h.html">dlib/revision.h</a> defines DLIB_REVISION
which is a #define you can use to see what version of dlib you have. The number in this file
is the subversion revision number associated with the particular copy of dlib you have.
</p>
<center><h1>Preprocessor Directives</h1></center>

View File

@ -12,6 +12,7 @@
<!-- ************* DLIB-ML STUFF **************** -->
<term file="dlib/rand/rand_float_abstract.h.html" name="get_random_float"/>
<term link="compile.html" name="DLIB_REVISION"/>
<term file="dlib/algs.h.html" name="stack_based_memory_block"/>

View File

@ -82,6 +82,14 @@ makedocs ()
echo Getting a copy of the source from subversion
svn export -r $REVISION $DLIB_REPOS/examples docs/cache/examples > /dev/null || report_failure
svn export -r $REVISION $DLIB_REPOS/dlib docs/cache/dlib > /dev/null || report_failure
echo "#ifndef DLIB_REVISION_H" > docs/cache/dlib/revision.h
echo "// Version: " $RELEASE >> docs/cache/dlib/revision.h
echo "// Date: " `date` >> docs/cache/dlib/revision.h
echo "// Subversion Revision Number" >> docs/cache/dlib/revision.h
echo "#define DLIB_REVISION " $REVISION >> docs/cache/dlib/revision.h
echo "#endif" >> docs/cache/dlib/revision.h
fi;
rm -rf docs/web/*

View File

@ -57,6 +57,7 @@ cp -r ../../docs/cache/dlib . || report_failure
cp -r ../../docs/cache/examples . || report_failure
echo Version: $RELEASE >> dlib/README.txt
echo "Date: `date`" >> dlib/README.txt
echo Subversion Revision Number: $REVISION >> dlib/README.txt

View File

@ -38,6 +38,7 @@ cp -r ../../docs/cache/dlib . || report_failure
cp -r ../../docs/cache/examples . || report_failure
echo This copy of dlib C++ library is a developmental snapshot. >> dlib/README.txt
echo "Date: `date`" >> dlib/README.txt
echo Subversion Revision Number: $REVISION >> dlib/README.txt