Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2183

Unify version strings and define them dynamically

    XMLWordPrintable

    Details

    • Platform:
      N/A

      Description

      There is a number of places we need to change version numbers to make a release and it is a time consuming and error prone process. What I suggest is that we leave this to the configure script to decide either from an argument or from an environment variable. Note that we must use AM_INIT_AUTOMAKE for this, we cannot use AC_INIT (see https://www.gnu.org/software/automake/manual/html_node/Public-Macros.html).

      We can use the AC_SUBST autoconf mechanism to replace instances, like:

        current_version => "@CFENGINE_VERSION@";
      

      The current places I know about are:

      • core/configure.ac
      • enterprise/configure.ac
      • nova/configure.ac
      • masterfiles/configure.ac
      • masterfiles/update/def.cf (and some versioned ones, look out)
      • Loads of mentions in the cf policies, not sure if we want to do anything about all those.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10040 Kristian Amlie
                Reporter:
                a10040 Kristian Amlie
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 day
                    1d
                    Remaining:
                    Remaining Estimate - 1 day
                    1d
                    Logged:
                    Time Spent - Not Specified
                    Not Specified