gnupic: Re: [gnupic] Adding a DATE macro to gpsim
Subject:
Re: [gnupic] Adding a DATE macro to gpsim
From:
Craig Franklin ####@####.####
Date:
19 Apr 2005 01:45:49 +0100
Message-Id: <4265A63D.9030005@users.sourceforge.net>
Peter Onion wrote:
>Hi,
>
>I've just come back to some code I wrote in 2001. At the time I had a
>version of gpasm to which I had added a "DATE" macro that was used to
>put the date the code was build into a string like this...
>
>VersionStart
> DT "0.31",0x0
>DateStart
> DT DATE,0x0
>
>Now I can't find the patch I used to add this to gpasm, so can someone
>point me to where I need to add code to gpasm to (re)implement this
>feature. I'm running gpasm on Linux.
>
>
>
gpasm could be modified to add this feature, but it is simple enough to
incorporate it into your Makefile. Use "date +%y%m%d" to generate the
value and "sed -e 's%\@DATE\@%$(DATE)%g' time.asm.in > time.asm" to
replace the value. I haven't tested these, but it should be close
enough for you to figure out.
>Peter
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####
>
>
>
>