diff options
author | EuAndreh <eu@euandre.org> | 2021-08-19 15:14:30 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-19 15:14:32 -0300 |
commit | 4a77a68a555a55492701f37d63b9e332965e9067 (patch) | |
tree | 120701fc9c76a9a250fe3daa6dd00687e9de1ab2 /aux/workflow/installcheck.sh | |
parent | TODOs.md: Add #task-62a25249-fc96-2774-9df9-663216fc6a0c (diff) | |
download | gistatic-4a77a68a555a55492701f37d63b9e332965e9067.tar.gz gistatic-4a77a68a555a55492701f37d63b9e332965e9067.tar.xz |
aux/workflow/installcheck.sh: Remove in favor of repocheck.sh
Adjust Makefile accordingly, alre removing "installcheck" and
"uninstallcheck" targets.
Diffstat (limited to 'aux/workflow/installcheck.sh')
-rwxr-xr-x | aux/workflow/installcheck.sh | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/aux/workflow/installcheck.sh b/aux/workflow/installcheck.sh deleted file mode 100755 index 0aae391..0000000 --- a/aux/workflow/installcheck.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh -set -eu - -while getopts 'p:x:l:f:u' flag; do - case "$flag" in - p) - PREFIX="$OPTARG" - ;; - x) - EXECUTABLES_EXPECTED="$OPTARG" - ;; - l) - SYMLINKS_EXPECTED="$OPTARG" - ;; - f) - FILES_EXPECTED="$OPTARG" - ;; - u) - UNINSTALL=1 - ;; - *) - exit 2 - ;; - esac -done -shift $((OPTIND - 1)) - - -if [ -n "${UNINSTALL:-}" ]; then - if [ "$(find "$PREFIX" -type f | wc -l)" != 0 ]; then - printf 'When uninstalling, left over files in the' - printf 'PREFIX directory:\n' - find "$PREFIX" -type f - exit 1 - fi - exit -fi - -EXECUTABLES_ACTUAL="$(find "$PREFIX" -type f -perm -a=x | wc -l)" -if [ "${EXECUTABLES_EXPECTED:-0}" != "$EXECUTABLES_ACTUAL" ]; then - printf 'Expected %s executables, found %s:\n' \ - "$EXECUTABLES_EXPECTED" "$EXECUTABLES_ACTUAL" >&2 - find "$PREFIX" -type f -perm -a=x - exit 1 -fi - -SYMLINKS_ACTUAL="$(find "$PREFIX" -type l | wc -l)" -if [ "${SYMLINKS_EXPECTED:-0}" != "$SYMLINKS_ACTUAL" ]; then - printf 'Expected %s symlinks, found %s:\n' \ - "$SYMLINKS_EXPECTED" "$SYMLINKS_ACTUAL" >&2 - find "$PREFIX" -type l - exit 1 -fi - -FILES_ACTUAL="$(find "$PREFIX" -type f | wc -l)" -if [ "${FILES_EXPECTED:-0}" != "$FILES_ACTUAL" ]; then - printf 'Expected %s files, found %s:\n' \ - "$FILES_EXPECTED" "$FILES_ACTUAL" >&2 - find "$PREFIX" -type f - exit 1 -fi |