shithub: libmujs

Download patch

ref: 5d1904912cd96b632b2185a69fada13a27226a06
parent: 2f3d5550a410981059437249b441bf164b0081b0
author: Sebastian Rasmussen <sebras@gmail.com>
date: Sat Aug 12 11:14:07 EDT 2017

Extract mujs version from directory name for releases.

--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,11 @@
 incdir ?= $(prefix)/include
 libdir ?= $(prefix)/lib
 
-VERSION = $(shell git describe --tags --always)
+ifeq "$(wildcard .git)" ".git"
+VERSION := $(shell git describe --tags --always)
+else
+VERSION := $(shell basename $$PWD | sed -e s,^mujs-,,)
+endif
 
 # Compiler flags for various configurations: