remove release_date.h and put the macro in version.h to be set by cmake

in the case of a release, it will be the date of the creation of the release
This commit is contained in:
Sébastien Loriot
2017-01-19 16:32:31 +01:00
parent 00a91ff5ce
commit eefa67f762
6 changed files with 6 additions and 27 deletions
@@ -13,6 +13,7 @@ use Archive::Tar::File;
use File::Copy;
use File::Copy::Recursive qw(dircopy);
use File::Path qw(mkpath);
use POSIX qw(strftime);
$Getopt::Std::STANDARD_HELP_VERSION = 1;
@@ -259,6 +260,7 @@ sub create_version_file()
chdir "$RELEASEDIR/$VERSION/include/CGAL" or die;
open(TEMPFILE, ">tempfile") or die;
my $RELEASE_DATE = strftime "%Y%m%d", localtime;
# TODO : add `svnversion` Revision.
print TEMPFILE << 'EOF';
@@ -295,6 +297,7 @@ EOF
print TEMPFILE "#define CGAL_VERSION_NR $VERSION_NR\n";
print TEMPFILE "#define CGAL_SVN_REVISION 0\n";
print TEMPFILE "#define CGAL_GIT_HASH 0\n";
print TEMPFILE "#define CGAL_RELEASE_DATE $RELEASE_DATE\n";
print TEMPFILE << 'EOF';
#define CGAL_VERSION_STR CGAL_str(CGAL_VERSION)