llama-cpp-turboquant/.gear/check
2026-04-08 23:02:56 +03:00

23 lines
538 B
Bash
Executable file

#!/bin/bash -efu
RET=0
f=tools/server/public/bundle.js
email=$(git log -1 --pretty=%ae -- "$f")
if [[ $email != *@altlinux.org ]]; then
echo >&2 "$f is not updated by ALT. Perhaps, run .gear/generate"
(set -x; git l -1 -- "$f")
RET=1
fi
ts_f=$(git log -1 --date=unix --pretty='%cd' "$f")
s=tools/server/webui
ts_s=$(git log -1 --date=unix --pretty='%cd' "$s")
if (( ts_f < ts_s )); then
echo >&2 "$f is not updated after $s update."
(set -x; git l -1 -- "$f")
(set -x; git l -1 -- "$s")
RET=1
fi
exit $RET