run_shellcheck.sh 714 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

if [ $# -lt 1 ]; then
    echo "$0: required one argument which is path to OTB source directory" 
fi

OTB_SOURCE_DIR="$1"

SHELLCHECK=$(which shellcheck)
if [ -z "$SHELLCHECK" ]; then
    echo "$0: Cannot find shellcheck. Make sure it is installed and can be found in PATH"
fi

"$SHELLCHECK" "$OTB_SOURCE_DIR/CMake/otbcli.sh.in"
"$SHELLCHECK" "$OTB_SOURCE_DIR/CMake/otbcli_app.sh.in"

"$SHELLCHECK" "$OTB_SOURCE_DIR/CMake/otbgui.sh.in"
"$SHELLCHECK" "$OTB_SOURCE_DIR/CMake/otbgui_app.sh.in"

"$SHELLCHECK" "$OTB_SOURCE_DIR/Utilities/Maintenance/SuperbuildDownloadList.sh"
21
22
"$SHELLCHECK" "$OTB_SOURCE_DIR/Packaging/Files/linux_pkgsetup.in"
"$SHELLCHECK" "$OTB_SOURCE_DIR/Packaging/Files/macx_pkgsetup.in"