Upgrade to libtasn1 4.19.0
[platform/upstream/libtasn1.git] / cfg.mk
1 # Copyright (C) 2006-2022 Free Software Foundation, Inc.
2 # Author: Simon Josefsson
3 #
4 # This file is part of LIBTASN1.
5 #
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
19 manual_title = Library for Abstract Syntax Notation One (ASN.1)
20
21 old_NEWS_hash = 7552c904096db5eb5310051b1b7d8560
22
23 bootstrap-tools = gnulib,autoconf,automake,libtoolize,make,makeinfo,bison,help2man,gtkdocize,tar,gzip
24
25 local-checks-to-skip = sc_prohibit_strcmp sc_prohibit_have_config_h     \
26         sc_require_config_h sc_require_config_h_first                   \
27         sc_immutable_NEWS sc_prohibit_magic_number_exit                 \
28         sc_bindtextdomain sc_GPL_version sc_prohibit_always_true_header_tests \
29         sc_prohibit_gnu_make_extensions sc_codespell
30
31 VC_LIST_ALWAYS_EXCLUDE_REGEX = ^(maint.mk|gtk-doc.make|build-aux/.*|lib/gl/.*|lib/ASN1\.c|m4/pkg.m4|doc/gdoc|windows/.*|doc/fdl-1.3.texi|fuzz/.*_fuzzer.(in|repro)/.*)$$
32 update-copyright-env = UPDATE_COPYRIGHT_USE_INTERVALS=1
33
34 # Explicit syntax-check exceptions.
35 exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = ^tests/TestIndef.p12$$
36 exclude_file_name_regexp--sc_GPL_version = ^lib/includes/libtasn1.h$$
37 exclude_file_name_regexp--sc_program_name = ^tests/|examples/
38 exclude_file_name_regexp--sc_prohibit_atoi_atof = ^src/asn1Coding.c|src/asn1Decoding.c$$
39 exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = ^tests/.*.(cer|der|asn|txt|p12)|tests/TestIndef.p12|msvc/.*$$
40 exclude_file_name_regexp--sc_error_message_uppercase = ^tests/Test_tree.c$$
41 exclude_file_name_regexp--sc_unmarked_diagnostics = ^tests/Test_tree.c$$
42 exclude_file_name_regexp--sc_prohibit_undesirable_word_seq = ^msvc/.*$$
43 exclude_file_name_regexp--sc_trailing_blank = ^msvc/.*|tests/(TestCertOctetOverflow.der|TestIndef.p12|TestIndef2.p12|TestIndef3.der|invalid-assignments2.txt)|tests/invalid-x509/id-.*$$
44 exclude_file_name_regexp--sc_useless_cpp_parens = ^lib/includes/libtasn1.h$$
45 exclude_file_name_regexp--sc_prohibit_eol_brackets = ^(autogen.sh|autopull.sh|bootstrap-funclib.sh|tests/.*|fuzz/.*|bootstrap)$$
46 exclude_file_name_regexp--sc_makefile_DISTCHECK_CONFIGURE_FLAGS = ^Makefile.am$$
47
48 sc_prohibit_eol_brackets:
49         @prohibit='.+\) *{$$' \
50         halt='please block bracket { use in a separate line' \
51           $(_sc_search_regexp)
52
53 sc_codespell:
54         @if `which codespell > /dev/null`; then \
55                 codespell -L tim,sorce `git ls-files|egrep -v '_fuzzer.in|_fuzzer.repro|gnulib|tests/.*.der|tests/TestIndef.*.p12|tests/built-in-type.asn|tests/crlf.cer|tests/invalid-assignments2.txt|windows/libtasn1.ncb|windows/libtasn1.suo$$'`; \
56         fi
57
58 sc_libtool_version_bump:
59         @git diff v$(PREV_VERSION).. | grep -q '^+AC_SUBST(LT'
60
61 aximport:
62         for f in m4/ax_*.m4; do \
63                 wget -O $$f "https://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=$$f"; \
64         done
65
66 review-tag ?= $(shell git describe --abbrev=0)
67 review-diff:
68         git diff $(review-tag).. \
69         | grep -v -e '^index' -e '^deleted file mode' -e '^new file mode' \
70         | filterdiff -p 1 -x 'build-aux/*' -x 'lib/gl*' -x 'po/*' -x 'maint.mk' -x '.gitignore' -x '.gitlab-ci.yml' -x .prev-version -x autogen.sh -x autopull.sh -x bootstrap -x bootstrap-funclib.sh \
71         | less