scripts/makelinux.zsh
Anna Schumaker 51f50a54b4 xfstests: Check if the current commit is a git tag
And create a link to the test results in a specific spot if it is so we
can eventually browse results by tag.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2022-01-31 15:02:30 -05:00

12 lines
284 B
Bash
Executable File

#!/bin/zsh
set -eo pipefail
let jobs=$(nproc)-2
if [ -f .git/config ] && [ -f .git/HEAD ]; then
REV=$(git rev-parse --short HEAD)$(git diff --quiet || echo "-dirty")
scripts/config --set-str CONFIG_LOCALVERSION "-g$REV"
fi
make -j$jobs $* | python /home/anna/bin/colors/make.py