Update checkdiff to check new man page locations

This commit is contained in:
ISSOtm
2022-05-21 11:01:32 +02:00
parent 68d3ef8e76
commit 80df6640e3

View File

@@ -25,7 +25,7 @@
declare -A FILES declare -A FILES
while read -r -d '' file; do while read -r -d '' file; do
FILES["$file"]="true" FILES["$file"]="true"
done < <(git diff --name-only -z $1 HEAD) done < <(git diff --name-only -z "$1" HEAD)
edited () { edited () {
${FILES["$1"]:-"false"} ${FILES["$1"]:-"false"}
@@ -40,13 +40,13 @@ dependency () {
# Pull requests that edit the first file without the second may be correct, # Pull requests that edit the first file without the second may be correct,
# but are suspicious enough to require review. # but are suspicious enough to require review.
dependency include/linkdefs.h src/rgbds.5 \ dependency include/linkdefs.h man/rgbds.5 \
"Was the object file format changed?" "Was the object file format changed?"
dependency src/asm/parser.y src/asm/rgbasm.5 \ dependency src/asm/parser.y man/rgbasm.5 \
"Was the rgbasm grammar changed?" "Was the rgbasm grammar changed?"
dependency include/asm/warning.h src/asm/rgbasm.1 \ dependency include/asm/warning.h man/rgbasm.1 \
"Were the rgbasm warnings changed?" "Were the rgbasm warnings changed?"
dependency src/asm/object.c include/linkdefs.h \ dependency src/asm/object.c include/linkdefs.h \
@@ -59,25 +59,25 @@ dependency Makefile CMakeLists.txt \
dependency Makefile src/CMakeLists.txt \ dependency Makefile src/CMakeLists.txt \
"Did the build process change?" "Did the build process change?"
dependency src/asm/main.c src/asm/rgbasm.1 \ dependency src/asm/main.c man/rgbasm.1 \
"Did the rgbasm CLI change?" "Did the rgbasm CLI change?"
dependency src/asm/main.c contrib/zsh_compl/_rgbasm \ dependency src/asm/main.c contrib/zsh_compl/_rgbasm \
"Did the rgbasm CLI change?" "Did the rgbasm CLI change?"
dependency src/asm/main.c contrib/bash_compl/_rgbasm.bash \ dependency src/asm/main.c contrib/bash_compl/_rgbasm.bash \
"Did the rgbasm CLI change?" "Did the rgbasm CLI change?"
dependency src/link/main.c src/link/rgblink.1 \ dependency src/link/main.c man/rgblink.1 \
"Did the rgblink CLI change?" "Did the rgblink CLI change?"
dependency src/link/main.c contrib/zsh_compl/_rgblink \ dependency src/link/main.c contrib/zsh_compl/_rgblink \
"Did the rgblink CLI change?" "Did the rgblink CLI change?"
dependency src/link/main.c contrib/bash_compl/_rgblink.bash \ dependency src/link/main.c contrib/bash_compl/_rgblink.bash \
"Did the rgblink CLI change?" "Did the rgblink CLI change?"
dependency src/fix/main.c src/fix/rgbfix.1 \ dependency src/fix/main.c man/rgbfix.1 \
"Did the rgbfix CLI change?" "Did the rgbfix CLI change?"
dependency src/fix/main.c contrib/zsh_compl/_rgbfix \ dependency src/fix/main.c contrib/zsh_compl/_rgbfix \
"Did the rgbfix CLI change?" "Did the rgbfix CLI change?"
dependency src/fix/main.c contrib/bash_compl/_rgbfix.bash \ dependency src/fix/main.c contrib/bash_compl/_rgbfix.bash \
"Did the rgbfix CLI change?" "Did the rgbfix CLI change?"
dependency src/gfx/main.c src/gfx/rgbgfx.1 \ dependency src/gfx/main.c man/rgbgfx.1 \
"Did the rgbgfx CLI change?" "Did the rgbgfx CLI change?"
dependency src/gfx/main.c contrib/zsh_compl/_rgbgfx \ dependency src/gfx/main.c contrib/zsh_compl/_rgbgfx \
"Did the rgbgfx CLI change?" "Did the rgbgfx CLI change?"