[gnutls-devel] GnuTLS | Indent code. (!1671)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sun Dec 4 13:00:41 CET 2022




Tim Rühsen started a new discussion on devel/indent-maybe: https://gitlab.com/gnutls/gnutls/-/merge_requests/1671#note_1195520023

> +#   indent-maybe lib/kx.h
> +#   INDENT="indent -ppi1 -linux" indent-maybe lib/kx.h
> +#
> +# COPYRIGHT
> +#   Copyright (c) 2022 Simon Josefsson
> +#   License: GPLv3+ <http://gnu.org/licenses/gpl.html>
> +
> +INDENT=${INDENT:-indent}
> +ME=$0
> +
> +if ! $INDENT --version 2> /dev/null | grep 'GNU indent' > /dev/null; then
> +    echo 1>&2 "$ME: GNU indent is missing, consider INDENT=..."
> +    exit 77
> +fi
> +
> +for f in "$@"; do

`$INDENT` and `$f` may contain spaces, better use quotes.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1671#note_1195520023
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20221204/a08946e0/attachment-0001.html>


More information about the Gnutls-devel mailing list