aboutsummaryrefslogblamecommitdiffstats
path: root/contrib/sendemail-validate
blob: 1d18e65cf738854e273494bd444745c26e114890 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                              
#!/bin/sh

set -e

email="${1?email file}"
tmp=$(mktemp -d)
trap "rm -rf -- $tmp" EXIT
git clone -q --depth=1 "https://git.sr.ht/~rjarry/aerc" "$tmp"
export GIT_DIR="$tmp/.git"
git -C "$tmp" am -q3 "$email"
make -sC "$tmp" check-patches all lint tests