diff options
| author | Michael Forney <mforney@mforney.org> | 2020-07-07 12:32:21 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-07-07 12:32:21 -0700 |
| commit | c716a36e63a4d5c65dc3ea40c0bbae0e5c5b03e3 (patch) | |
| tree | d875108ae90ea934dbf7b1e69a784dac11004955 /pkg/bc | |
| parent | 377687061de65f29625fe12f4e5b09ed9c27e276 (diff) | |
bc: Update to 3.1.1
Diffstat (limited to 'pkg/bc')
| -rw-r--r-- | pkg/bc/gen.lua | 21 | ||||
| m--------- | pkg/bc/src | 0 | ||||
| -rw-r--r-- | pkg/bc/ver | 2 |
3 files changed, 20 insertions, 3 deletions
diff --git a/pkg/bc/gen.lua b/pkg/bc/gen.lua index 1c90801f..99c81d2d 100644 --- a/pkg/bc/gen.lua +++ b/pkg/bc/gen.lua @@ -1,6 +1,6 @@ cflags{ '-D NDEBUG', - '-D VERSION=3.0.1', + '-D VERSION=3.1.1', '-D _POSIX_C_SOURCE=200809L', '-I $srcdir/include', '-include $dir/config.h', @@ -47,6 +47,23 @@ exe('bin/bc', [[ $outdir/(bc_help.c dc_help.c lib.c lib2.c) ]]) file('bin/bc', '755', '$outdir/bin/bc') -man{'manuals/bc.1'} + +local opts = {} +for line in iterlines('config.h', 1) do + local var, val = line:match('^define ([^ ]+) ([^ ]+)') + if var and val == '1' then + opts[var] = true + end +end + +local manfile = '' +if not opts.BC_ENABLE_EXTRA_MATH then manfile = manfile..'E' end +if not opts.BC_ENABLE_HISTORY then manfile = manfile..'H' end +if not opts.BC_ENABLE_NLS then manfile = manfile..'N' end +if not opts.BC_ENABLE_PROMPT then manfile = manfile..'P' end +if manfile == '' then manfile = 'A' end + +build('copy', '$outdir/bc.1', '$srcdir/manuals/bc/'..manfile..'.1') +man{'$outdir/bc.1'} fetch 'git' diff --git a/pkg/bc/src b/pkg/bc/src -Subproject febe0bd42cbbc7e058d9c0ba3520b608f2fb0a5 +Subproject 6354165652b45e89d553fa95b5d36c07f808098 @@ -1 +1 @@ -3.0.1 r0 +3.1.1 r0 |
