summary refs log tree commit diff
path: root/bin/Makefile
blob: e0933eaed96af2a55add6fad3a79653ac5adca74 (plain) (blame)
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
BINS = atch bri dtch hnel jrp pbcopy pbd pbpaste typo wake watch xx
CWARNS = -Wall -Wextra -Wpedantic

all: $(BINS)

.c:
	$(CC) $(CWARNS) $(CFLAGS) -o $@ $<

atch: dtch
	ln -f dtch atch

dtch: dtch.c
	$(CC) $(CWARNS) $(CFLAGS) -lutil -o dtch dtch.c

hnel: hnel.c
	$(CC) $(CWARNS) $(CFLAGS) -lutil -o hnel hnel.c

jrp: jrp.c
	$(CC) $(CWARNS) $(CFLAGS) -ledit -o jrp jrp.c

pbcopy: pbd
	ln -f pbd pbcopy

pbpaste: pbd
	ln -f pbd pbpaste

typo: typo.c
	$(CC) $(CWARNS) $(CFLAGS) -lcurses -o typo typo.c

clean:
	rm -f $(BINS)

link: $(BINS)
	ln -s -f $(BINS:%=$(PWD)/%) ~/.bin

unlink:
	rm -f $(BINS:%=~/.bin/%)

.gitignore: Makefile
	echo $(BINS) | tr ' ' '\n' > .gitignore

.PHONY: all clean link unlink
ight'> Git upstream bans sprintf() with commit: banned.h: mark sprintf() as banned cc8fdaee1eeaf05d8dd55ff11f111b815f673c58 Signed-off-by: Christian Hesse <mail@eworm.de> 2018-09-11parsing: ban strncpy()Christian Hesse Git upstream bans strncpy() with commit: banned.h: mark strncpy() as banned e488b7aba743d23b830d239dcc33d9ca0745a9ad Signed-off-by: Christian Hesse <mail@eworm.de> 2018-08-28filters: generate anchor links from markdownChristian Hesse This makes the markdown filter generate anchor links for headings. Signed-off-by: Christian Hesse <mail@eworm.de> Tested-by: jean-christophe manciot <actionmystique@gmail.com> 2018-08-03Bump version.Jason A. Donenfeld Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2018-08-03clone: fix directory traversalJason A. Donenfeld This was introduced in the initial version of this code, way back when in 2008. $ curl http://127.0.0.1/cgit/repo/objects/?path=../../../../../../../../../etc/passwd root:x:0:0:root:/root:/bin/sh ... Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Reported-by: Jann Horn <jannh@google.com> 2018-08-03config: record repo.snapshot-prefix in the per-repo configKonstantin Ryabitsev