1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
sortix--sortix/build-aux/verify-ports.sh
Jonas 'Sortie' Termansen 802b0ef1d1 Add verify-ports presubmit.
2022-07-09 20:51:13 +02:00

16 lines
431 B
Bash
Executable file

#!/bin/sh
# Verifies the port(5) files.
set -e
for port in ports/*/*.port; do \
tix-vars -t "$port"
NAME=$(tix-vars "$port" NAME)
if [ "$port" != "ports/$NAME/$NAME.port" ]; then
echo "error: $port should be ports/$NAME/$NAME.port"
exit 1
fi
DEVELOPMENT=$(tix-vars -d unset "$port" DEVELOPMENT)
if [ "$DEVELOPMENT" != unset ]; then
echo "error: $port: DEVELOPMENT should be not be set"
exit 1
fi
done