Browse Source

Add precommit hook to rebuild generated files.

Thomas Kerber 1 year ago
parent
commit
da747d6374
Signed by: Thomas Kerber <tk@drwx.org> GPG Key ID: 8489B911F9ED617B
7 changed files with 7 additions and 3 deletions
  1. 1
    1
      Makefile
  2. 0
    0
      bin/gen.py
  3. 0
    0
      bin/insert.sh
  4. 3
    0
      bin/pre-commit.sh
  5. 3
    0
      bin/setup-hooks.sh
  6. 0
    1
      gen/notes/Saberhagen13.md
  7. 0
    1
      notes/Saberhagen13.md

+ 1
- 1
Makefile View File

@@ -5,6 +5,6 @@ clean:
5 5
 	rm -rf gen
6 6
 
7 7
 gen:
8
-	./gen.py
8
+	bin/gen.py
9 9
 
10 10
 .PHONY: all clean gen

gen.py → bin/gen.py View File


insert.sh → bin/insert.sh View File


+ 3
- 0
bin/pre-commit.sh View File

@@ -0,0 +1,3 @@
1
+#!/bin/bash
2
+make
3
+git add gen

+ 3
- 0
bin/setup-hooks.sh View File

@@ -0,0 +1,3 @@
1
+#!/bin/bash
2
+ROOT=$(git rev-parse --show-toplevel)
3
+ln -s "../../bin/pre-commit.sh" "$ROOT/.git/hooks/pre-commit"

+ 0
- 1
gen/notes/Saberhagen13.md View File

@@ -3,5 +3,4 @@
3 3
 
4 4
 Tags: [all](../indicies/all.md)/[unread](../indicies/unread.md)
5 5
 <!-- %url: https://cryptonote.org/whitepaper.pdf -->
6
-
7 6
 * Is the Monero whitepaper

+ 0
- 1
notes/Saberhagen13.md View File

@@ -1,5 +1,4 @@
1 1
 # CryptoNote v 2.0
2 2
 <!-- %tags: unread -->
3 3
 <!-- %url: https://cryptonote.org/whitepaper.pdf -->
4
-
5 4
 * Is the Monero whitepaper

Loading…
Cancel
Save