summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2022-01-01 01:24:27 +0000
committerColin Watson <cjwatson@debian.org>2022-01-01 01:24:27 +0000
commitc4ef5112a240de1681c74e4c6b64939090fe0193 (patch)
treefc4b2111f4e2d92b1c5e19e45e4bdc3dd470c7b3 /m4
parent1775521c6e3395eada1812575f2df48706386866 (diff)
Introduce pre-commit
* .pre-commit-config.yaml: New file. * .gitlab-ci.yml (stages): Add bootstrap. (pre-commit): New job. (bootstrap): Move to bootstrap stage. Remove trailing whitespace from all files.
Diffstat (limited to 'm4')
-rw-r--r--m4/man-arg-cache-owner.m44
-rw-r--r--m4/man-arg-db.m42
-rw-r--r--m4/man-arg-device.m42
-rw-r--r--m4/man-arg-setuid.m44
-rw-r--r--m4/man-gnu-nroff.m42
5 files changed, 7 insertions, 7 deletions
diff --git a/m4/man-arg-cache-owner.m4 b/m4/man-arg-cache-owner.m4
index eaffed05..e267fef2 100644
--- a/m4/man-arg-cache-owner.m4
+++ b/m4/man-arg-cache-owner.m4
@@ -7,11 +7,11 @@ AC_DEFUN([MAN_ARG_CACHE_OWNER],
AC_ARG_ENABLE([cache-owner],
[AS_HELP_STRING([--enable-cache-owner[=ARG]], [make system-wide cache files be owned by user ARG [arg=man]])
AS_HELP_STRING([--disable-cache-owner], [don't constrain ownership of system-wide cache files])],
- [if test "$enableval" = "yes"
+ [if test "$enableval" = "yes"
then
enableval=man
fi
- if test "$enableval" = "no"
+ if test "$enableval" = "no"
then
man_owner=
cache_top_owner=root
diff --git a/m4/man-arg-db.m4 b/m4/man-arg-db.m4
index 9b409bf3..bb1a8db3 100644
--- a/m4/man-arg-db.m4
+++ b/m4/man-arg-db.m4
@@ -6,7 +6,7 @@ AC_DEFUN([MAN_ARG_DB],
[
AC_ARG_WITH([db],
[AS_HELP_STRING([--with-db=LIBRARY], [use database library LIBRARY (db5, db4, db3, db2, db1, db, gdbm, ndbm)])],
- [if test "$withval" = "yes" || test "$withval" = "no"
+ [if test "$withval" = "yes" || test "$withval" = "no"
then
AC_MSG_ERROR([--with-db requires an argument])
else
diff --git a/m4/man-arg-device.m4 b/m4/man-arg-device.m4
index 7a82bb7d..d3996c28 100644
--- a/m4/man-arg-device.m4
+++ b/m4/man-arg-device.m4
@@ -6,7 +6,7 @@ AC_DEFUN([MAN_ARG_DEVICE],
[
AC_ARG_WITH([device],
[AS_HELP_STRING([--with-device=DEVICE], [use nroff with the output device DEVICE])],
- [if test "$withval" = "yes" || test "$withval" = "no"
+ [if test "$withval" = "yes" || test "$withval" = "no"
then
AC_MSG_ERROR([--with-device requires an argument])
else
diff --git a/m4/man-arg-setuid.m4 b/m4/man-arg-setuid.m4
index 2190541e..1ef63d6e 100644
--- a/m4/man-arg-setuid.m4
+++ b/m4/man-arg-setuid.m4
@@ -7,7 +7,7 @@ AC_DEFUN([MAN_ARG_SETUID],
AC_ARG_ENABLE([setuid],
[AS_HELP_STRING([--enable-setuid], [install man setuid])
AS_HELP_STRING([--disable-setuid], [don't install man setuid])],
- [if test "$enableval" = "yes"
+ [if test "$enableval" = "yes"
then
if test -z "$man_owner"
then
@@ -15,7 +15,7 @@ AS_HELP_STRING([--disable-setuid], [don't install man setuid])],
fi
man_mode="6755"
AC_MSG_NOTICE([Man will be installed setuid $man_owner])
- elif test "$enableval" = "no"
+ elif test "$enableval" = "no"
then
man_mode="755"
AC_MSG_NOTICE([Man will not be installed setuid])
diff --git a/m4/man-gnu-nroff.m4 b/m4/man-gnu-nroff.m4
index 9aab841d..6fc0bb2e 100644
--- a/m4/man-gnu-nroff.m4
+++ b/m4/man-gnu-nroff.m4
@@ -16,7 +16,7 @@ EOF
man_cv_prog_gnu_nroff=no
fi])
-if test "$man_cv_prog_gnu_nroff" = "yes"
+if test "$man_cv_prog_gnu_nroff" = "yes"
then
AC_DEFINE([GNU_NROFF], [1], [Define if nroff is GNU nroff.])
fi