Changed intermediate version numbers to be git-style, eg 7.0.0-39 instead of 7.1.0-PRE
* Changed datastore modstate to be last in file, as prior to 7.0
This commit is contained in:
parent
8ebfdb8168
commit
ca701b0c1a
17 changed files with 18 additions and 25 deletions
|
|
@ -36,6 +36,7 @@ Expected: June 2024
|
||||||
### API changes on existing protocol/config features
|
### API changes on existing protocol/config features
|
||||||
Users may have to change how they access the system
|
Users may have to change how they access the system
|
||||||
|
|
||||||
|
* Changed intermediate version numbers to be git-style, eg `7.0.0-39` instead of `7.1.0-PRE`
|
||||||
* If `CLICON_XMLDB_MULTI` is set, datastores are stored in a new directory
|
* If `CLICON_XMLDB_MULTI` is set, datastores are stored in a new directory
|
||||||
* Previously: `CLICON_XMLDB_DIR/<db>_db`
|
* Previously: `CLICON_XMLDB_DIR/<db>_db`
|
||||||
* New: `CLICON_XMLDB_DIR/<db>d/`
|
* New: `CLICON_XMLDB_DIR/<db>d/`
|
||||||
|
|
|
||||||
|
|
@ -569,7 +569,7 @@ main(int argc,
|
||||||
help = 1;
|
help = 1;
|
||||||
break;
|
break;
|
||||||
case 'V':
|
case 'V':
|
||||||
cligen_output(stdout, "Clixon version: %s\n", CLIXON_VERSION_STRING);
|
cligen_output(stdout, "Clixon version: %s\n", CLIXON_GITHASH);
|
||||||
print_version++; /* plugins may also print versions w ca-version callback */
|
print_version++; /* plugins may also print versions w ca-version callback */
|
||||||
break;
|
break;
|
||||||
case 'D' : { /* debug */
|
case 'D' : { /* debug */
|
||||||
|
|
|
||||||
|
|
@ -618,7 +618,7 @@ main(int argc,
|
||||||
help = 1;
|
help = 1;
|
||||||
break;
|
break;
|
||||||
case 'V': /* version */
|
case 'V': /* version */
|
||||||
cligen_output(stdout, "Clixon version: %s\n", CLIXON_VERSION_STRING);
|
cligen_output(stdout, "Clixon version: %s\n", CLIXON_GITHASH);
|
||||||
print_version++; /* plugins may also print versions w ca-version callback */
|
print_version++; /* plugins may also print versions w ca-version callback */
|
||||||
break;
|
break;
|
||||||
case 'D' : { /* debug */
|
case 'D' : { /* debug */
|
||||||
|
|
|
||||||
|
|
@ -992,7 +992,7 @@ cli_show_version(clixon_handle h,
|
||||||
cvec *cvv,
|
cvec *cvv,
|
||||||
cvec *argv)
|
cvec *argv)
|
||||||
{
|
{
|
||||||
cligen_output(stdout, "Clixon: %s\n", CLIXON_VERSION_STRING);
|
cligen_output(stdout, "Clixon: %s\n", CLIXON_GITHASH);
|
||||||
cligen_output(stdout, "CLIgen: %s\n", CLIGEN_VERSION);
|
cligen_output(stdout, "CLIgen: %s\n", CLIGEN_VERSION);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -709,7 +709,7 @@ main(int argc,
|
||||||
usage(h, argv[0]);
|
usage(h, argv[0]);
|
||||||
break;
|
break;
|
||||||
case 'V': /* version */
|
case 'V': /* version */
|
||||||
cligen_output(stdout, "Clixon version: %s\n", CLIXON_VERSION_STRING);
|
cligen_output(stdout, "Clixon version: %s\n", CLIXON_GITHASH);
|
||||||
print_version++; /* plugins may also print versions w ca-version callback */
|
print_version++; /* plugins may also print versions w ca-version callback */
|
||||||
break;
|
break;
|
||||||
case 'D' : { /* debug */
|
case 'D' : { /* debug */
|
||||||
|
|
|
||||||
|
|
@ -345,7 +345,7 @@ main(int argc,
|
||||||
usage(h, argv[0]);
|
usage(h, argv[0]);
|
||||||
break;
|
break;
|
||||||
case 'V':
|
case 'V':
|
||||||
cligen_output(stdout, "Clixon version: %s\n", CLIXON_VERSION_STRING);
|
cligen_output(stdout, "Clixon version: %s\n", CLIXON_GITHASH);
|
||||||
print_version++; /* plugins may also print versions w ca-version callback */
|
print_version++; /* plugins may also print versions w ca-version callback */
|
||||||
break;
|
break;
|
||||||
case 'D' : { /* debug */
|
case 'D' : { /* debug */
|
||||||
|
|
|
||||||
|
|
@ -1176,7 +1176,7 @@ main(int argc,
|
||||||
usage(h, argv0);
|
usage(h, argv0);
|
||||||
break;
|
break;
|
||||||
case 'V': /* version */
|
case 'V': /* version */
|
||||||
cligen_output(stdout, "Clixon version: %s\n", CLIXON_VERSION_STRING);
|
cligen_output(stdout, "Clixon version: %s\n", CLIXON_GITHASH);
|
||||||
print_version++; /* plugins may also print versions w ca-version callback */
|
print_version++; /* plugins may also print versions w ca-version callback */
|
||||||
break;
|
break;
|
||||||
case 'D' : { /* debug. Note this overrides any setting in the config */
|
case 'D' : { /* debug. Note this overrides any setting in the config */
|
||||||
|
|
|
||||||
|
|
@ -382,7 +382,7 @@ main(int argc,
|
||||||
usage(h, argv[0]);
|
usage(h, argv[0]);
|
||||||
break;
|
break;
|
||||||
case 'V': /* version */
|
case 'V': /* version */
|
||||||
cligen_output(stdout, "Clixon version: %s\n", CLIXON_VERSION_STRING);
|
cligen_output(stdout, "Clixon version: %s\n", CLIXON_GITHASH);
|
||||||
print_version++; /* plugins may also print versions w ca-version callback */
|
print_version++; /* plugins may also print versions w ca-version callback */
|
||||||
break;
|
break;
|
||||||
case 'D' : { /* debug */
|
case 'D' : { /* debug */
|
||||||
|
|
|
||||||
7
configure
vendored
7
configure
vendored
|
|
@ -696,7 +696,6 @@ INSTALL_PROGRAM
|
||||||
INCLUDES
|
INCLUDES
|
||||||
CLIXON_VERSION_MINOR
|
CLIXON_VERSION_MINOR
|
||||||
CLIXON_VERSION_MAJOR
|
CLIXON_VERSION_MAJOR
|
||||||
CLIXON_VERSION_STRING
|
|
||||||
CLIXON_VERSION
|
CLIXON_VERSION
|
||||||
target_os
|
target_os
|
||||||
target_vendor
|
target_vendor
|
||||||
|
|
@ -2846,9 +2845,6 @@ ac_config_headers="$ac_config_headers include/clixon_config.h lib/clixon/clixon.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
printf "%s\n" "#define CLIXON_VERSION_STRING $CLIXON_VERSION" >>confdefs.h
|
|
||||||
|
|
||||||
|
|
||||||
printf "%s\n" "#define CLIXON_VERSION_MAJOR $CLIXON_VERSION_MAJOR" >>confdefs.h
|
printf "%s\n" "#define CLIXON_VERSION_MAJOR $CLIXON_VERSION_MAJOR" >>confdefs.h
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -4014,8 +4010,7 @@ test -n "$target_alias" &&
|
||||||
program_prefix=${target_alias}-
|
program_prefix=${target_alias}-
|
||||||
|
|
||||||
# AC_SUBST(var) makes @var@ appear in makefiles.
|
# AC_SUBST(var) makes @var@ appear in makefiles.
|
||||||
# clixon versions spread to Makefile's (.so files) and variable in build.c
|
# Clixon versions is used in Makefile's (.so files) and variable in build.c
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,6 @@ fi
|
||||||
|
|
||||||
AC_CONFIG_HEADERS([include/clixon_config.h lib/clixon/clixon.h])
|
AC_CONFIG_HEADERS([include/clixon_config.h lib/clixon/clixon.h])
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(CLIXON_VERSION_STRING, $CLIXON_VERSION, [Clixon version string])
|
|
||||||
AC_DEFINE_UNQUOTED(CLIXON_VERSION_MAJOR, $CLIXON_VERSION_MAJOR, [Clixon major release])
|
AC_DEFINE_UNQUOTED(CLIXON_VERSION_MAJOR, $CLIXON_VERSION_MAJOR, [Clixon major release])
|
||||||
AC_DEFINE_UNQUOTED(CLIXON_VERSION_MINOR, $CLIXON_VERSION_MINOR, [Clixon minor release])
|
AC_DEFINE_UNQUOTED(CLIXON_VERSION_MINOR, $CLIXON_VERSION_MINOR, [Clixon minor release])
|
||||||
AC_DEFINE_UNQUOTED(CLIXON_VERSION_PATCH, $CLIXON_VERSION_PATCH, [Clixon path version])
|
AC_DEFINE_UNQUOTED(CLIXON_VERSION_PATCH, $CLIXON_VERSION_PATCH, [Clixon path version])
|
||||||
|
|
@ -84,9 +83,8 @@ AC_CHECK_LIB(m, main)
|
||||||
AC_CANONICAL_TARGET
|
AC_CANONICAL_TARGET
|
||||||
|
|
||||||
# AC_SUBST(var) makes @var@ appear in makefiles.
|
# AC_SUBST(var) makes @var@ appear in makefiles.
|
||||||
# clixon versions spread to Makefile's (.so files) and variable in build.c
|
# Clixon versions is used in Makefile's (.so files) and variable in build.c
|
||||||
AC_SUBST(CLIXON_VERSION)
|
AC_SUBST(CLIXON_VERSION)
|
||||||
AC_SUBST(CLIXON_VERSION_STRING)
|
|
||||||
AC_SUBST(CLIXON_VERSION_MAJOR)
|
AC_SUBST(CLIXON_VERSION_MAJOR)
|
||||||
AC_SUBST(CLIXON_VERSION_MINOR)
|
AC_SUBST(CLIXON_VERSION_MINOR)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -356,7 +356,7 @@ example_cli_errmsg(clixon_handle h,
|
||||||
*
|
*
|
||||||
* A plugin can customize a version (or banner) output on stdout.
|
* A plugin can customize a version (or banner) output on stdout.
|
||||||
* Several version strings can be printed if there are multiple callbacks.
|
* Several version strings can be printed if there are multiple callbacks.
|
||||||
* If not regstered plugins exist, clixon prints CLIXON_VERSION_STRING
|
* If no registered plugins exist, clixon prints CLIXON_GITHASH
|
||||||
* Typically invoked by command-line option -V
|
* Typically invoked by command-line option -V
|
||||||
* @param[in] h Clixon handle
|
* @param[in] h Clixon handle
|
||||||
* @param[in] f Output file
|
* @param[in] f Output file
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,6 @@
|
||||||
/* Clixon path version */
|
/* Clixon path version */
|
||||||
#undef CLIXON_VERSION_PATCH
|
#undef CLIXON_VERSION_PATCH
|
||||||
|
|
||||||
/* Clixon version string */
|
|
||||||
#undef CLIXON_VERSION_STRING
|
|
||||||
|
|
||||||
/* Enable YANG patch, RFC 8072 */
|
/* Enable YANG patch, RFC 8072 */
|
||||||
#undef CLIXON_YANG_PATCH
|
#undef CLIXON_YANG_PATCH
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,8 @@ extern "C" {
|
||||||
/*
|
/*
|
||||||
* CLIXON version macros, set in configure and resolved when expanding to
|
* CLIXON version macros, set in configure and resolved when expanding to
|
||||||
* clixon.h
|
* clixon.h
|
||||||
|
* XXX: use github versioning: CLIXON_GITHASH[] instead
|
||||||
*/
|
*/
|
||||||
#undef CLIXON_VERSION_STRING
|
|
||||||
#undef CLIXON_VERSION_MAJOR
|
#undef CLIXON_VERSION_MAJOR
|
||||||
#undef CLIXON_VERSION_MINOR
|
#undef CLIXON_VERSION_MINOR
|
||||||
#undef CLIXON_VERSION_PATCH
|
#undef CLIXON_VERSION_PATCH
|
||||||
|
|
@ -122,6 +122,7 @@ extern "C" {
|
||||||
* Global variables generated by Makefile
|
* Global variables generated by Makefile
|
||||||
*/
|
*/
|
||||||
extern const char CLIXON_BUILDSTR[];
|
extern const char CLIXON_BUILDSTR[];
|
||||||
|
extern const char CLIXON_GITHASH[];
|
||||||
extern const char CLIXON_VERSION[];
|
extern const char CLIXON_VERSION[];
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
||||||
|
|
@ -340,7 +340,7 @@ typedef int (errmsg_t)(clixon_handle h, const char *fn, const int line,
|
||||||
*
|
*
|
||||||
* A plugin can customize a version (or banner) output on stdout.
|
* A plugin can customize a version (or banner) output on stdout.
|
||||||
* Several version strings can be printed if there are multiple callbacks.
|
* Several version strings can be printed if there are multiple callbacks.
|
||||||
* If not registered plugins exist, clixon prints CLIXON_VERSION_STRING
|
* If no registered plugins exist, clixon prints CLIXON_GITHASH
|
||||||
* Typically invoked by command-line option -V
|
* Typically invoked by command-line option -V
|
||||||
* @param[in] h Clixon handle
|
* @param[in] h Clixon handle
|
||||||
* @param[in] f Output file
|
* @param[in] f Output file
|
||||||
|
|
|
||||||
|
|
@ -299,6 +299,7 @@ DATELEN = $(shell date +"%Y.%m.%d %H:%M by `whoami` on `hostname`XXXX"|wc -c)
|
||||||
build.c:
|
build.c:
|
||||||
echo "/* This file is generated from the Clixon Makefile */" > $@;
|
echo "/* This file is generated from the Clixon Makefile */" > $@;
|
||||||
date +"const char CLIXON_BUILDSTR[$(DATELEN)]=\"%Y.%m.%d %H:%M by `whoami` on `hostname`"\"\; >> $@;
|
date +"const char CLIXON_BUILDSTR[$(DATELEN)]=\"%Y.%m.%d %H:%M by `whoami` on `hostname`"\"\; >> $@;
|
||||||
|
echo "const char CLIXON_GITHASH[64]=\"$(shell git log --pretty="format:%(describe) %ci" -n1)\""\; >> $@;
|
||||||
echo "const char CLIXON_VERSION[64]=\"$(CLIXON_VERSION)\""\; >> $@;
|
echo "const char CLIXON_VERSION[64]=\"$(CLIXON_VERSION)\""\; >> $@;
|
||||||
|
|
||||||
# Note: will always be remade since GENOBS is date dependent
|
# Note: will always be remade since GENOBS is date dependent
|
||||||
|
|
|
||||||
|
|
@ -64,9 +64,6 @@ CC=@CC@
|
||||||
# Top src dir
|
# Top src dir
|
||||||
TOP_SRCDIR=@top_srcdir@
|
TOP_SRCDIR=@top_srcdir@
|
||||||
|
|
||||||
# Clixon version
|
|
||||||
CLIXON_VERSION=@CLIXON_VERSION@
|
|
||||||
|
|
||||||
CLICON_USER=@CLICON_USER@
|
CLICON_USER=@CLICON_USER@
|
||||||
CLICON_GROUP=@CLICON_GROUP@
|
CLICON_GROUP=@CLICON_GROUP@
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,9 @@ if [ -f ./config.sh ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Note that this relies on git being present in shell
|
||||||
|
CLIXON_VERSION="$(git log --pretty="format:%(describe) %ci" -n1)"
|
||||||
|
|
||||||
# Test number from start
|
# Test number from start
|
||||||
: ${testnr:=0}
|
: ${testnr:=0}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue