diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-01-17 15:17:09 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-01-17 15:17:09 +0900 |
commit | 30d8e25233f4cd9a1f3d43531f474af1040f3120 (patch) | |
tree | a90bff3efb3c872f42441daa11ee82790eff2f3f /bootstrap | |
parent | c225268743b7571b1b6a326e34e002b3a4f40d2f (diff) | |
download | gnunet-30d8e25233f4cd9a1f3d43531f474af1040f3120.tar.gz gnunet-30d8e25233f4cd9a1f3d43531f474af1040f3120.zip |
build: update git hooks again and fix autmatic installation on bootstrap
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -40,8 +40,8 @@ check_uncrustify() | |||
40 | { | 40 | { |
41 | if existence uncrustify; then | 41 | if existence uncrustify; then |
42 | echo "Installing uncrustify hook and configuration" | 42 | echo "Installing uncrustify hook and configuration" |
43 | ln -fs contrib/conf/uncrustify.cfg uncrustify.cfg 2> /dev/null | 43 | ln -fs $(pwd)/contrib/conf/uncrustify.cfg uncrustify.cfg 2> /dev/null |
44 | ln -fs contrib/conf/uncrustify_precommit .git/hooks/pre-commit 2> /dev/null | 44 | ln -fs $(pwd)/contrib/conf/uncrustify_precommit .git/hooks/pre-commit 2> /dev/null |
45 | else | 45 | else |
46 | echo "Uncrustify not detected, hook not installed." | 46 | echo "Uncrustify not detected, hook not installed." |
47 | echo "Please install uncrustify if you plan on doing development" | 47 | echo "Please install uncrustify if you plan on doing development" |
@@ -173,6 +173,12 @@ gana_update() | |||
173 | echo "GANA finished" | 173 | echo "GANA finished" |
174 | } | 174 | } |
175 | 175 | ||
176 | install_hooks() | ||
177 | { | ||
178 | ln -fs $(pwd)/contrib/conf/prepare-commit-msg .git/hooks/prepare-commit-msg 2> /dev/null | ||
179 | ln -fs $(pwd)/contrib/conf/commit-msg .git/hooks/commit-msg 2> /dev/null | ||
180 | } | ||
181 | |||
176 | main() | 182 | main() |
177 | { | 183 | { |
178 | cleanup | 184 | cleanup |
@@ -182,6 +188,7 @@ main() | |||
182 | check_uncrustify | 188 | check_uncrustify |
183 | check_yapf | 189 | check_yapf |
184 | check_libtool | 190 | check_libtool |
191 | install_hooks | ||
185 | } | 192 | } |
186 | 193 | ||
187 | main "$@" | 194 | main "$@" |