Closed e8johan closed 9 years ago
Neat :+1:
Please use $(shell)
for multi-platform.
VERSION+=$(shell git log --oneline -n 1 | sed 's/\ .*//')$(shell git status --porcelain | grep -q '^\ M' && echo -n M)
CC=gcc
CFLAGS=-Wall -pedantic -g -DUNIX_HOST -DVER=\"${VERSION}\"
LIBS=-lm -lreadline
This works on windows too.
Cool. Then I'll close this one.
However, @zsaleeba seems not active for this repo.
Sorry, I'll be back and active soon. I'm a bit snowed under with other stuff right now.
Great to hear from you! Looking forward to moving this project ahead!
Replaced svnversion with a hack that extracts the short hash using git log and then appends an M if there are modified files in the clone using git status.