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

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sun Dec 4 12:59:49 CET 2022




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

> +#!/bin/sh
> +
> +# Copyright (c) 2022 Simon Josefsson
> +# License: GPLv3+ <http://gnu.org/licenses/gpl.html>
> +
> +if ! indent --version 2> /dev/null | grep 'GNU indent' > /dev/null; then
> +    echo 1>&2 '$0: GNU indent is missing'
> +    exit 77
> +fi
> +
> +INDENT="indent -ppi1 -linux"; export INDENT
> +
> +git ls-files -z | grep -z '\.[ch]\(.in\)\?$' | grep -z -v '^./devel/' | xargs -0 -n1 `dirname $0`/indent-maybe

`$0` may contain spaces, better quote.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1671#note_1195519913
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/7c781761/attachment.html>


More information about the Gnutls-devel mailing list