cgit

commit 7c2dea03674b54aa43d17a93e6e550f03759c95f

Author: Lukas Fleischer <info@cryptocrack.de>

Makefile: Make `make get-git` work under OpenBSD.

OpenBSD tar(1) defaults to read from "/dev/rst0" when not specifying an
filename and thus fails to extract the Git sourcecode when not passing
stdin as input file descriptor explicitly.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>

 Makefile | 2 +-


diff --git a/Makefile b/Makefile
index 2dae3acd42c8c67db3130697d03eaa544837084c..3bdc218eb5b5987f4795e07ef0c1eb81fd969a2c 100644
--- a/Makefile
+++ b/Makefile
@@ -168,4 +168,4 @@ clean-doc:
 	rm -f cgitrc.5 cgitrc.5.html cgitrc.5.pdf cgitrc.5.xml cgitrc.5.fo
 
 get-git:
-	curl $(GIT_URL) | tar -xj && rm -rf git && mv git-$(GIT_VER) git
+	curl $(GIT_URL) | tar -xjf - && rm -rf git && mv git-$(GIT_VER) git