[gnutls-devel] GnuTLS | mech-list.h: generate unique entries (6099715e)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Tue Sep 25 19:15:37 CEST 2018
Dmitry Eremin-Solenikov started a new discussion on src/gen-mech-list.sh:
> # Exclude duplicate and uninteresting entries
> EXCLUDED="(CKM_VENDOR_DEFINED\s|CKM_CAST128_MAC\s|CKM_CAST128_KEY_GEN\s|CKM_CAST128_ECB\s|CKM_CAST128_CBC\s|CKM_CAST128_MAC_GENERAL\s|CKM_CAST128_CBC_PAD\s|CKM_PBE_MD5_CAST128_CBC\s|CKM_PBE_SHA1_CAST128_CBC\s|CKM_EC_KEY_PAIR_GEN\s)"
>
> -cat ${HEADER}|grep -E "define\sCKM_"|grep -vE "${EXCLUDED}"|awk '{print "\t["$3"] = \""$2"\","}'
> +TMPFILE=list.$$.tmp
>
> +cat ${HEADER}|grep -E "define\sCKM_"|grep -vE "${EXCLUDED}"|awk '{print "\t["$3"] = \""$2"\","}' >${TMPFILE}
> +cat ${TMPFILE}|sort|uniq
Why do you need to split these pipelines instead of just `cat ${HEADER} | grep -E "..." | grep -vE "..." | awk '{...}' | sort | uniq`? Or even `... | sort -u`?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/commit/6099715eefb08e8bff3265ebdc48f2a051cb0527#note_104216166
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/20180925/12b378de/attachment.html>
More information about the Gnutls-devel
mailing list