aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-06-01 14:57:01 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-06-01 14:57:01 +0200
commitf8a1c21a71debc3068606912dae680394784369c (patch)
treec86bd52113820db1cec3e72e7c8cf1adbfc995fe
parentb2e97e6cfe87ee4e6accf4ac3cfa94c9c4e00c1c (diff)
downloadmblaze-f8a1c21a71debc3068606912dae680394784369c.tar.gz
GNUmakefile: generate museragent
-rw-r--r--GNUmakefile12
-rw-r--r--VERSION1
2 files changed, 10 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index f598f4f..a4ea9bb 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -18,9 +18,9 @@ BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man
ALL = maddr magrep mdate mdeliver mdirs mexport mflag mgenmid mhdr minc mlist mmime mpick mscan msed mseq mshow msort mthread
-SCRIPT = mcolor mcom mless mquote
+SCRIPT = mcolor mcom mless mquote museragent
-all: $(ALL)
+all: $(ALL) museragent
$(ALL) : % : %.o
maddr magrep mdeliver mexport mflag mgenmid mhdr mpick mscan msed mshow \
@@ -34,11 +34,17 @@ mscan : pipeto.o
msort : mystrverscmp.o
mmime : slurp.o
+museragent: FRC
+ @printf '#!/bin/sh\nprintf "User-Agent: mblaze/%s (%s)\\n"\n' \
+ "$$(git describe --always @ 2>/dev/null || cat VERSION)" \
+ "$$(date +%Y-%m-%d)" >$@
+ @chmod +x $@
+
README: man/mblaze.7
mandoc -Tutf8 $< | col -bx >$@
clean: FRC
- -rm -f $(ALL) *.o
+ -rm -f $(ALL) *.o museragent
check: FRC all
PATH=$$(pwd):$$PATH prove -v
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..ba66466
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.0