mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-21 17:31:05 +02:00
Make lint-includes.sh work from any directory
This commit is contained in:
parent
f5db3f2128
commit
490da639cb
@ -11,6 +11,9 @@
|
|||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
IGNORE_REGEXP="/(leveldb|secp256k1|univalue)/"
|
IGNORE_REGEXP="/(leveldb|secp256k1|univalue)/"
|
||||||
|
|
||||||
|
# cd to root folder of git repo for git ls-files to work properly
|
||||||
|
cd "$(dirname $0)/../.." || exit 1
|
||||||
|
|
||||||
filter_suffix() {
|
filter_suffix() {
|
||||||
git ls-files | grep -E "^src/.*\.${1}"'$' | grep -Ev "${IGNORE_REGEXP}"
|
git ls-files | grep -E "^src/.*\.${1}"'$' | grep -Ev "${IGNORE_REGEXP}"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user