Skip to content

Commit cad02aa

Browse files
committed
Merge 'dev' ~ v581.2 + fix errors/lints + dev tooling fixes/improvements
2 parents 04855ce + fbb43c6 commit cad02aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+4935
-3260
lines changed

.github/workflows/CICD.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ env:
1818

1919
on: [push, pull_request]
2020

21+
# terminate execution of the current workflow group when there is a newer changeset detected
22+
# * the group is defined by "WORKFLOW_NAME-REF", where REF can be a branch, tag, or pull-request reference
23+
# * workflows executing for the default branch are excluded from termination
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.ref }}
26+
cancel-in-progress: ${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }}
27+
2128
jobs:
2229
build:
2330
name: Build
@@ -55,7 +62,7 @@ jobs:
5562
run: |
5663
## VARs setup
5764
log() { for var in "$@" ; do echo ${var}="${!var}"; done; }
58-
outputs() { for var in "$@" ; do echo steps.vars.outputs.${var}="${!var}"; echo ::set-output name=${var}::${!var}; done; }
65+
outputs() { step_id="${{ github.action }}"; for var in "$@" ; do echo steps.${step_id}.outputs.${var}="${!var}"; echo "${var}=${!var}" >> $GITHUB_OUTPUT; done; }
5966
# staging directory
6067
STAGING='_staging'
6168
outputs STAGING

.gitignore

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# v2022-08-26+less-mods [rivy]
1+
# v2022-08-27 [rivy]
2+
# + local-start/end mods for `less`
23

34
# NOTE: Git GLOBSTAR syntax [see `git help gitignore`]
45
# * ref: [.gitignore] http://git-scm.com/docs/gitignore @@ http://archive.is/Rk6rO
@@ -19,13 +20,14 @@ node_modules
1920
package-lock.json
2021
yarn.lock
2122

22-
# ignore localized VSCode logs/settings
23+
# ignore local-only VSCode artifacts
24+
# * logs/settings
2325
.vscode/c_cpp_properties.json
2426
.vscode/makefile.extension.output
25-
# * ignore VSCode precompiled headers for IntelliSense
27+
# * precompiled headers for IntelliSense
2628
.vscode/ipch/
2729

28-
## local additions ##
30+
#!local-start
2931

3032
# `less` ~ most older Makefiles still generate artifacts *within* the source code folder
3133

@@ -44,3 +46,5 @@ defines.h
4446
# * object files
4547
*.o
4648
*.obj
49+
50+
#!local-end

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"type": "cppdbg",
99
"request": "launch",
1010
"program": "${fileWorkspaceFolder}/${config:project.build_dir}/debug-x32/executable.exe",
11-
"args": [], // * note: use this configuration array to add run-time arguments to the debugged process
11+
"args": ["main.c"], // * note: use this configuration array to add run-time arguments to the debugged process
1212
// "args": ["/?"], // * note: use this configuration array to add run-time arguments to the debugged process
1313
// "args": ["${fileWorkspaceFolder}/../causes-fault-single-line.txt"],
1414
"stopAtEntry": false,

INSTALL.upstream

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
This file describes how to build and install less using
2-
the "configure" script. This only works on Unix systems.
3-
To install on other systems, read the README file.
1+
This file contains generic instructions on how to build and
2+
install software using autoconf. For specific instructions
3+
on how to build "less", see the README or README.VER file.
44

55

66
Basic Installation
@@ -24,8 +24,8 @@ diffs or instructions to the address given in the `README' so they can
2424
be considered for the next release. If at some point `config.cache'
2525
contains results you don't want to keep, you may remove or edit it.
2626

27-
The file `configure.in' is used to create `configure' by a program
28-
called `autoconf'. You only need `configure.in' if you want to change
27+
The file `configure.ac' is used to create `configure' by a program
28+
called `autoconf'. You only need `configure.ac' if you want to change
2929
it or regenerate `configure' using a newer version of `autoconf'.
3030

3131
The simplest way to compile this package is:

Makefile.aut

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
# Makefile for authoring less.
22

33
EMAIL = bug-less@gnu.org
4-
HOMEPAGE = http://www.greenwoodsoftware.com/less
4+
HOMEPAGE = https://greenwoodsoftware.com/less
55
SHELL = /bin/sh
66
GIT = git
77
NROFF = nroff -t -man
88

99
srcdir = .
1010

11+
ifeq ($(USE_PYTHON),1)
12+
MKHELP = mkhelp.py
13+
MKFUNCS = mkfuncs.py
14+
else
15+
MKHELP = mkhelp.pl
16+
MKFUNCS = mkfuncs.pl
17+
endif
18+
1119
SRC = \
1220
main.c screen.c brac.c ch.c charset.c cmdbuf.c \
1321
command.c cvt.c decode.c edit.c filename.c forwback.c \
@@ -19,7 +27,7 @@ DISTFILES_W = \
1927
defines.ds Makefile.dsb Makefile.dsg Makefile.dsu \
2028
defines.o2 Makefile.o2e \
2129
defines.o9 Makefile.o9c Makefile.o9u \
22-
defines.wn Makefile.wnm Makefile.wnb \
30+
defines.wn Makefile.wnm Makefile.wnb Makefile.wng \
2331
configure
2432
UNICODE_FILES = \
2533
compose.uni fmt.uni ubin.uni wide.uni
@@ -33,6 +41,7 @@ DISTFILES = \
3341
less.nro less.man lesskey.nro lesskey.man lessecho.nro lessecho.man \
3442
less.hlp \
3543
mkfuncs.pl mkhelp.pl \
44+
mkfuncs.py mkhelp.py \
3645
mkutable $(UNICODE_FILES) \
3746
${DISTFILES_W}
3847

@@ -49,15 +58,15 @@ release: .FORCE
4958
help.c: less.hlp
5059
-mv -f ${srcdir}/help.c ${srcdir}/help.c.old
5160
rm -rf help.c
52-
${srcdir}/mkhelp.pl < less.hlp > help.c
61+
${srcdir}/${MKHELP} < less.hlp > help.c
5362
if cmp -s help.c help.c.old; then mv -f help.c.old help.c; fi
5463

5564
${srcdir}/configure ${srcdir}/defines.h.in: ${srcdir}/configure.ac ${srcdir}/Makefile.in
5665
cd ${srcdir}; autoheader; autoconf
5766

5867
funcs.h: ${SRC:%=${srcdir}/%}
5968
-mv -f ${srcdir}/funcs.h ${srcdir}/funcs.h.old
60-
perl ${srcdir}/mkfuncs.pl ${SRC:%=${srcdir}/%} >${srcdir}/funcs.h
69+
${srcdir}/${MKFUNCS} ${SRC:%=${srcdir}/%} >${srcdir}/funcs.h
6170
if cmp -s funcs.h funcs.h.old; then mv -f funcs.h.old funcs.h; fi
6271

6372
lint:
@@ -80,7 +89,6 @@ REPLACE_VERSION = \
8089
sed \
8190
-e "s;@@VERSION@@;$$REL;" \
8291
-e "s;@@DATE@@;$$DT;" \
83-
-e "s;@@EMAIL@@;${EMAIL};" \
8492
-e "s;@@HOMEPAGE@@;${HOMEPAGE};" >$@
8593

8694
${srcdir}/README: ${srcdir}/README.VER ${srcdir}/version.c

Makefile.dsb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,3 @@ clean:
4848
-del *.obj
4949
-del less.exe
5050
-del lesskey.exe
51-
52-
build: all
53-
compile: $(OBJ)
54-
rebuild: clean build
55-
realclean: clean
56-
veryclean: realclean

Makefile.dsg

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,3 @@ distclean: clean
8585

8686
realclean: distclean
8787
command.com /c if exist TAGS del TAGS
88-
89-
build: all
90-
compile: ${OBJ}
91-
rebuild: clean build
92-
veryclean: realclean

Makefile.dsu

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,3 @@ clean:
5656
-del *.obj
5757
-del less.exe
5858
-del lesskey.exe
59-
60-
build: all
61-
compile: $(OBJ)
62-
rebuild: clean build
63-
realclean: clean
64-
veryclean: realclean

Makefile.in

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,3 @@ distclean: clean
121121

122122
realclean: distclean
123123
rm -f TAGS
124-
125-
build: all
126-
compile: ${OBJ}
127-
rebuild: clean build
128-
veryclean: realclean

0 commit comments

Comments
 (0)