[bin/cdist-build-helper] Fix paths to ex scripts/ scripts

This commit is contained in:
Dennis Camera 2020-11-11 14:45:05 +01:00
parent 21dd500c05
commit e2d4f8037a
1 changed files with 9 additions and 8 deletions

View File

@ -45,7 +45,7 @@ usage() {
shellcheck-manifests shellcheck-manifests
shellcheck-local-gencodes shellcheck-local-gencodes
shellcheck-remote-gencodes shellcheck-remote-gencodes
shellcheck-scripts shellcheck-bin
shellcheck-gencodes shellcheck-gencodes
shellcheck-types shellcheck-types
shellcheck shellcheck
@ -100,7 +100,7 @@ case "$option" in
if (\$0 ~ /^$end/) { if (\$0 ~ /^$end/) {
exit exit
} else { } else {
print \$0 print \$0
} }
} }
}" "$basedir/docs/changelog" }" "$basedir/docs/changelog"
@ -135,7 +135,7 @@ case "$option" in
version=$1; shift version=$1; shift
( (
cat << eof cat << eof
Subject: cdist $version has been released Subject: cdist $version has been released
@ -336,7 +336,7 @@ eof
make docs-clean make docs-clean
make docs make docs
############################################################# #############################################################
# Everything green, let's do the release # Everything green, let's do the release
# Tag the current commit # Tag the current commit
@ -405,7 +405,7 @@ eof
;; ;;
pycodestyle|pep8) pycodestyle|pep8)
pycodestyle "${basedir}" "${basedir}/scripts/cdist" pycodestyle "${basedir}" "${basedir}/bin/cdist"
;; ;;
check-pycodestyle) check-pycodestyle)
@ -460,9 +460,10 @@ eof
test ! -s "${SHELLCHECKTMP}" || { cat "${SHELLCHECKTMP}"; exit 1; } test ! -s "${SHELLCHECKTMP}" || { cat "${SHELLCHECKTMP}"; exit 1; }
;; ;;
shellcheck-scripts) # NOTE: shellcheck-scripts is kept for compatibility
shellcheck-bin|shellcheck-scripts)
# shellcheck disable=SC2086 # shellcheck disable=SC2086
${SHELLCHECKCMD} scripts/cdist-dump scripts/cdist-new-type > "${SHELLCHECKTMP}" ${SHELLCHECKCMD} bin/cdist-dump bin/cdist-new-type > "${SHELLCHECKTMP}"
test ! -s "${SHELLCHECKTMP}" || { cat "${SHELLCHECKTMP}"; exit 1; } test ! -s "${SHELLCHECKTMP}" || { cat "${SHELLCHECKTMP}"; exit 1; }
;; ;;
@ -480,7 +481,7 @@ eof
shellcheck) shellcheck)
"$0" shellcheck-global-explorers || exit 1 "$0" shellcheck-global-explorers || exit 1
"$0" shellcheck-types || exit 1 "$0" shellcheck-types || exit 1
"$0" shellcheck-scripts || exit 1 "$0" shellcheck-bin || exit 1
;; ;;
shellcheck-type-files) shellcheck-type-files)