blob: 4229b62cf07258903a1e0ef116c338df1ce24daf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# file : bdep-util/buildfile
# license : MIT; see accompanying LICENSE file
import mods = libbutl.bash%bash{manifest-parser}
import mods += libbutl.bash%bash{standard-version}
# @@ TMP Use the hint-based versions of the dependency declarations once the
# toolchain requirement is 0.16.0.
#
# Note that git-hooks/pre-commit script just sources bdep-git-pre-commit. The
# reason to have both scripts is to be able to configure git's pre-commit hook
# via the core.hooksPath configuration value (should refer, for example, to
# the /usr/local/bin/bdep-git-hooks directory) and to import
# bdep-git-pre-commit, for example, for testing the installed hook.
#
git-hooks/
{
# [rule_hint=bash] exe{pre-commit}: in{pre-commit}
exe{pre-commit}: in{pre-commit} $mods
exe{pre-commit}: ../exe{bdep-git-pre-commit}: install = true
}
#[rule_hint=bash] exe{bdep-git-pre-commit}: in{git-pre-commit}
exe{bdep-git-pre-commit}: in{git-pre-commit} $mods
exe{bdep-git-pre-commit}: exe{bdep-git-pre-commit-version-check \
bdep-git-pre-commit-copyright-check}: \
install = true
exe{bdep-git-pre-commit-version-check}: in{git-pre-commit-version-check} $mods
#[rule_hint=bash] \
#exe{bdep-git-pre-commit-copyright-check}: in{git-pre-commit-copyright-check}
exe{bdep-git-pre-commit-copyright-check}: in{git-pre-commit-copyright-check} \
$mods
# Install the git pre-commit hook into bdep-git-hooks/ subdirectory of, say,
# /usr/bin/.
#
git-hooks/exe{pre-commit}: install = bin/bdep-git-hooks/
|