Clean up git version generation.
authorTeemu Murtola <teemu.murtola@gmail.com>
Mon, 22 Oct 2012 04:41:40 +0000 (07:41 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sat, 27 Oct 2012 04:13:18 +0000 (06:13 +0200)
commitd2934a96b823c6e04eaff14e2c03aa5ac0d035ad
treec0155153be519572339dd74103242f8c504d7d98
parenta3bec75e4e9e3b6737f88e773c706efcf4cd2af3
Clean up git version generation.

- Rename USE_VERSION_H to GMX_GIT_VERSION_INFO. This was particularly
  confusing now that there was a separate version.h file for API version
  numbers.
- Move the version.h/version.c files to src/gromacs/utility/ and rename
  them to gitversion.*, again to avoid confusion with the API version.h
  header.
- Remove unnecessary suffix stripping from gmxGenerateVersionInfo.cmake:
  when this functionality was added, the version string was of the form
  X.Y-dev-YYYYMMDD, and the script was stripping the date off. Now that
  the date is gone, it is clearer to just append the generated version
  with no extra logic.
- Change the logic for handling GMX_GIT_VERSION_INFO in CMake such that
  user-provided cache values are never changed under the hood.

Change-Id: I372a4e2fdf11b1799dd22997bc6adb4faf3db93d
CMakeLists.txt
cmake/gmxGenerateVersionInfo.cmake
src/config.h.cmakein
src/gromacs/CMakeLists.txt
src/gromacs/gmxlib/copyrite.c
src/gromacs/utility/.gitignore
src/gromacs/utility/gitversion.c.cmakein [moved from src/gromacs/version.c.cmakein with 82% similarity]
src/gromacs/utility/gitversion.h [moved from src/gromacs/gmxlib/version.h with 93% similarity]