maint: update to latest luaposix getopt API.

Since v29, luaposix.getopt_long has been replaced by posix.getopt,
which returns arguments in a different order, and uses strings
instead of bytes for character returns.
* zmacs/main.lua (process_args): Update to luaposix >= 29 getopt
API.
* zmacs/zmacs.in: Require at least luaposix 29.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
slingshot: move from gnulib to slingshot.

We only use build-scripts from gnulib, so remove it and get the
scripts from slingshot instead.
* slingshot: Added as a new subproject.
* bootstrap.slingshot: New file.
* bootstrap: Update from slingshot.
* .gitmodules, gnulib, gl/build-aux/bootstrap.in,
gl/build-aux/do-release-commit-and-tag.diff,
gl/build-aux/extract-trace, gl/build-aux/funclib.sh,
gl/build-aux/inline-source, gl/build-aux/options-parser,
gl/doc/bootstrap.texi, gl/modules/bootstrap,
gl/modules/extract-trace, gl/modules/funclib.sh,
gl/modules/inline-source, gl/build-aux/options-parser,
m4/ax_compare_versions, m4/ax_lua.m4, m4/ax_with_prog.m4: Remove.
* Makefile.am: Remove duplicates of slingshot/Makefile.am, and
then move the rest from here...
* local.mk: ...to here.
* configure.ac: Simplify accordingly.
* bootstrap.conf: Likewise.
* .gitignore: Update to match.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
luarocks: initial rockspec support with slingshot.

* configure.ac (AC_INIT): Use a single digit release number.
* rockspec.conf: New file. Input for mkrockspecs.
* .gitignore: ignore generated rockspecs.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
maint: fix another luaposix.getopt API incompatibility.

* zmacs/main.lua (process_args): optind and optarg have swapped
positions in the return values from getopt.
Make sure to convert 'c' back to an integer before checking for
non-option arguments.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
slingshot: sync with upstream.

* slingshot: Update from upstream master, for gitlog_args
support.
* local.mk (git_log_fix, git_log_args): Rename from this...
(gitlog_fix, gitlog_args): ...to this, for compatibility with
slingshot.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
maint: remove unused gl/top/maint.mk.diff.

* gl/top/maint.mk.diff: Remove.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
refactor: make zmacs location independent for luarocks install.

LuaRocks requires that installed files work independently of
their install location.
* rockspec.conf (build): Copy bin and doc directories.
* zmacs/Makefile.am (zmacs_install_edit, zmacs_inplace_edit):
Adjust path substitutions.
(zmacs/zmacs, zmacs/dotzmacs.sample, zmacs/zmacs.1): Move frome
here...
(bin/zmacs, doc/dotzmacs.sample, doc/zmacs.1): ...to here.
(doc_DATA, man_MANS): Install from $(builddir)/doc.
(bin_SCRIPTS): Install from $(builddir)/bin.
* zmacs/callbacks.lua, zmacs/eval.lua, zmacs/keymaps.lua,
zmacs/main.lua, zmacs/zlc, zmacs/zmacs.in: Add zile or zmacs
prefix to require statements as required.
* tests/Makeflie.am (tests-check-local): Refer to new zmacs path.
* tests/run-lisp-tests.lua (zile_cmd): Likewise.
* build-aux/.gitignore, m4/.gitignore, src/.gitignore,
tests/.gitignore, zmacs/.gitignore, zmacs/tests/.gitignore:
Consolidate from here...
* .gitignore: ...to here.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
tests: require 'make tests-check-local' for old zile testsuite.

* tests/Makefile.am (check_local): Comment out addition of
tests-check-local.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
maint: refactor gnulib cfg.mk for slingshot.

* cfg.mk: Move from here...
* build-aux/sanity-cfg.mk: ...to here.
(update-copyright-env, old_NEWS_hash): Move from here...
* local.mk (update_copyright_env, old_NEWS_hash): ...to here.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
configury: run AC_PROG_SED and AC_PROG_EGREP for release.mk et. al.

* configure.ac: Add AC_PROG_SED and AC_PROG_EGREP.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Release version 3

* NEWS: Record release date.
maint: post-release administrivia.

* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* ./local.mk (old_NEWS_hash): Auto-update.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>