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 :-)


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to