File: pre-commit

package info (click to toggle)
arping 2.28-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,104 kB
  • sloc: sh: 4,707; ansic: 4,028; exp: 405; python: 142; makefile: 34
file content (19 lines) | stat: -rwxr-xr-x 375 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

set -ueo pipefail

ARPING_TEMPDIR="$(mktemp -d /tmp/arping-test-XXXXXX)"
echo "Set up tempdir ${ARPING_TEMPDIR}"
git archive HEAD | tar -x -C "${ARPING_TEMPDIR}"
git diff --cached --binary | (
        cd "${ARPING_TEMPDIR}"
        git apply
)
cd "${ARPING_TEMPDIR}"

./bootstrap.sh
./configure
make -j$(nproc)
make check
make distcheck
sudo ./tests/run