git/Doit

23 lines
506 B
Bash
Executable File

#!/bin/sh
MASTER=master
test -n "$branches" || branches="next $MASTER maint jch seen"
changed=
for b in $branches
do
installed=$(rungit "$b" version) &&
installed=${installed##* } &&
case "$installed" in
*-g*) installed=$(git describe "$installed") ;;
*) installed=$(git describe "v$installed") ;;
esac &&
latest=$(git describe "$b") &&
test "z$latest" = "z$installed" ||
changed="$changed $b"
done
Meta/Dothem -j8 &&
Meta/Dothem -j8 --dash --branches="$changed" --scratch --force CC=clang