From: Enoch <ix...@ho...> - 2012-11-27 03:34:39
|
Hello Matthias, >> It is a solution but I prefer a word like svnrev. > > :=) My solution was to create a svnversion word through the Makefile: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AMFORTH := ../amforth/trunk CORE := $(AMFORTH)/core DEVICE := $(CORE)/devices/$(MCU) SVNVERSION := `svnversion -n $(AMFORTH)` $(TARGET).hex: $(TARGET).asm *.inc words/*.asm $(CORE)/*.asm $(CORE)/words/*.asm $(DEVICE)/*.asm $(XASM) -I $(CORE) -o $(TARGET).hex -e $(TARGET).eep -l $(TARGET).lst $(TARGET).asm echo ": svnversion .\" r$(SVNVERSION)\" ;" >svnversion.frt Now in the application: ~~~~~~~~~~~~~~~~~~~~~~~ \ #include svnversion.frt : myturnkey \ snip applturnkey space svnversion ; ' myturnkey is turnkey The result: ~~~~~~~~~~~ amforth 4.9 AT90CAN128 r1306M Thanks, Enoch. P/S M reminds me that you did not accept my amforth-shell.py patch yet :-) |