mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
305abe91f9
* Squashed 'src/dashbls/' content from commit 66ee820fbc git-subtree-dir: src/dashbls git-subtree-split: 66ee820fbc9e3b97370db8c164904af48327a124 * build: stop tracking build-system generated relic_conf.h.in * build: add support for building bls-signatures from local subtree * build: add exclusions to linting scripts and filters * build: drop bls-signatures (bls-dash) from depends
25 lines
814 B
Bash
Executable File
25 lines
814 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) 2018 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
#
|
|
# Make sure only lowercase alphanumerics (a-z0-9), underscores (_),
|
|
# hyphens (-) and dots (.) are used in source code filenames.
|
|
|
|
export LC_ALL=C
|
|
|
|
EXIT_CODE=0
|
|
OUTPUT=$(git ls-files --full-name -- "*.[cC][pP][pP]" "*.[hH]" "*.[pP][yY]" "*.[sS][hH]" | \
|
|
grep -vE '^[a-z0-9_./-]+$' | \
|
|
grep -vE '^src/(dashbls/|secp256k1/|univalue/|test/fuzz/FuzzedDataProvider.h)')
|
|
|
|
if [[ ${OUTPUT} != "" ]]; then
|
|
echo "Use only lowercase alphanumerics (a-z0-9), underscores (_), hyphens (-) and dots (.)"
|
|
echo "in source code filenames:"
|
|
echo
|
|
echo "${OUTPUT}"
|
|
EXIT_CODE=1
|
|
fi
|
|
exit ${EXIT_CODE}
|