Skip to content

Commit 611da1e

Browse files
committed
bump version, add version number to ctlgeom.h
1 parent ea13876 commit 611da1e

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

NEWS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Libctl Release Notes
22

3+
## libctl 4.5.0
4+
5+
* New `make_slanted_prism` functions to make a prism with
6+
a given sidewall angle (#53).
7+
8+
* Defined `LIBCTL_MAJOR_VERSION` etc. in `ctlgeom.h` header file when
9+
using stand-alone libctlgeom.
10+
11+
* Bugfix in point-in-prism test (#49).
12+
313
## libctl 4.4.0
414

515
11/12/19

configure.ac

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Process this file with autoconf to produce a configure script.
2-
AC_INIT(libctl, 4.4.0, stevenj@alum.mit.edu)
2+
AC_INIT(libctl, 4.5.0, stevenj@alum.mit.edu)
33
AC_CONFIG_SRCDIR([src/ctl.c])
44
AC_CONFIG_HEADERS([config.h src/ctl.h])
55
AC_CONFIG_MACRO_DIR([m4])
@@ -8,7 +8,7 @@ AM_MAINTAINER_MODE
88
# Shared-library version number; indicates api compatibility, and is
99
# not the same as the "public" version number. (Don't worry about this
1010
# except for public releases.)
11-
SHARED_VERSION_INFO="9:0:2" # CURRENT:REVISION:AGE
11+
SHARED_VERSION_INFO="10:0:3" # CURRENT:REVISION:AGE
1212

1313
AM_INIT_AUTOMAKE([foreign])
1414
AC_SUBST(SHARED_VERSION_INFO)
@@ -29,6 +29,9 @@ test "x$LIBCTL_BUGFIX_VERSION" = x && LIBCTL_BUGFIX_VERSION=0
2929
AC_DEFINE_UNQUOTED(LIBCTL_MAJOR_VERSION, $LIBCTL_MAJOR_VERSION, [major v.])
3030
AC_DEFINE_UNQUOTED(LIBCTL_MINOR_VERSION, $LIBCTL_MINOR_VERSION, [minor v.])
3131
AC_DEFINE_UNQUOTED(LIBCTL_BUGFIX_VERSION, $LIBCTL_BUGFIX_VERSION, [bugfix v.])
32+
AC_SUBST(LIBCTL_MAJOR_VERSION)
33+
AC_SUBST(LIBCTL_MINOR_VERSION)
34+
AC_SUBST(LIBCTL_BUGFIX_VERSION)
3235

3336
###########################################################################
3437

utils/Makefile.am

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ ctl-io.h: geom.scm $(GEN_CTL_IO)
4242

4343
ctlgeom-types.h: ctl-io.h
4444
sed 's,SCM,void*,;s,ctl\.h,ctl-math.h,' ctl-io.h > $@
45+
echo '#ifndef LIBCTL_MAJOR_VERSION' >> $@
46+
echo '# define LIBCTL_MAJOR_VERSION '$(LIBCTL_MAJOR_VERSION) >> $@
47+
echo '# define LIBCTL_MINOR_VERSION '$(LIBCTL_MINOR_VERSION) >> $@
48+
echo '# define LIBCTL_BUGFIX_VERSION '$(LIBCTL_BUGFIX_VERSION) >> $@
49+
echo '#endif' >> $@
4550

4651
geom-ctl-io.c: ctl-io.c
4752
sed 's,ctl-io\.h,ctlgeom-types.h,;s,/.* Input variables .*/,@#include "geom-ctl-io-defaults.c"@#if 0@,;s,/.* Output variables .*/,#endif@,' ctl-io.c | tr '@' '\n' > $@

0 commit comments

Comments
 (0)