diff --git a/Installation/CMakeLists.txt b/Installation/CMakeLists.txt index 30440ddf9b0..94e81674b45 100644 --- a/Installation/CMakeLists.txt +++ b/Installation/CMakeLists.txt @@ -212,6 +212,7 @@ if ( CGAL_BRANCH_BUILD ) message(STATUS "CGAL_CREATED_SVN_REVISION is ${CGAL_CREATED_SVN_REVISION} (dummy)") file(REMOVE ${CMAKE_BINARY_DIR}/include/CGAL/version.h) + string(TIMESTAMP CGAL_CREATED_RELEASE_DATE "%Y%m%d") configure_file(${CGAL_INSTALLATION_PACKAGE_DIR}/config/version.h.in ${CMAKE_BINARY_DIR}/include/CGAL/version.h @ONLY) # diff --git a/Installation/config/version.h.in b/Installation/config/version.h.in index df5f9facac2..81ed4043384 100644 --- a/Installation/config/version.h.in +++ b/Installation/config/version.h.in @@ -28,6 +28,8 @@ #define CGAL_VERSION_NR @CGAL_CREATED_VERSION_NR@ #define CGAL_SVN_REVISION @CGAL_CREATED_SVN_REVISION@ +#define CGAL_RELEASE_DATE @CGAL_CREATED_RELEASE_DATE@ + #include #endif diff --git a/Installation/include/CGAL/license/gpl.h.in b/Installation/include/CGAL/license/gpl.h.in index 6ad280611f7..98522bc1e61 100644 --- a/Installation/include/CGAL/license/gpl.h.in +++ b/Installation/include/CGAL/license/gpl.h.in @@ -21,7 +21,6 @@ #include #include -#include diff --git a/Installation/include/CGAL/license/lgpl.h b/Installation/include/CGAL/license/lgpl.h index af81974f996..445f199e197 100644 --- a/Installation/include/CGAL/license/lgpl.h +++ b/Installation/include/CGAL/license/lgpl.h @@ -23,7 +23,6 @@ #include #include -#include diff --git a/Installation/include/CGAL/license/release_date.h b/Installation/include/CGAL/license/release_date.h deleted file mode 100644 index ffa49f3f6e0..00000000000 --- a/Installation/include/CGAL/license/release_date.h +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016 GeometryFactory Sarl (France) -// -// This file is part of CGAL (www.cgal.org); you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public License as -// published by the Free Software Foundation; either version 3 of the License, -// or (at your option) any later version. -// -// Licensees holding a valid commercial license may use this file in -// accordance with the commercial license agreement provided with the software. -// -// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -// -// $URL$ -// $Id$ -// -// -// Author : Andreas Fabri - -#ifndef CGAL_LICENSE_RELEASE_DATE_H -#define CGAL_LICENSE_RELEASE_DATE_H - -#define CGAL_RELEASE_DATE 20170201 - -#endif diff --git a/Scripts/developer_scripts/create_internal_release b/Scripts/developer_scripts/create_internal_release index 07dfa85e607..32fb3618938 100755 --- a/Scripts/developer_scripts/create_internal_release +++ b/Scripts/developer_scripts/create_internal_release @@ -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)