25 lines
642 B
Bash
Executable File
25 lines
642 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
|
|
[ -f "$root/ports/Mk/mouse.port.mk" ]
|
|
[ -x "$root/ports/Mk/Scripts/check-plist.sh" ]
|
|
[ -x "$root/ports/Mk/Scripts/checksum.sh" ]
|
|
[ -x "$root/ports/Mk/Scripts/fetch.sh" ]
|
|
[ -x "$root/ports/Mk/Scripts/install-depends.sh" ]
|
|
[ -x "$root/ports/Mk/Scripts/package.sh" ]
|
|
|
|
find "$root/ports" -mindepth 2 -maxdepth 2 -type d \
|
|
! -path "$root/ports/Mk/*" -print |
|
|
while IFS= read -r port; do
|
|
for file in Makefile distinfo pkg-plist; do
|
|
[ -f "$port/$file" ] || {
|
|
printf '%s\n' "missing $file: $port" >&2
|
|
exit 1
|
|
}
|
|
done
|
|
done
|
|
|
|
printf '%s\n' "ports layout checks passed"
|