gnupic: Re: [gnupic] Adding a DATE macro to gpsim


Previous by date: 20 Apr 2005 08:58:18 +0100 Re: [gnupic] MPLAB ICD2, Sylvain Giroudon
Next by date: 20 Apr 2005 08:58:18 +0100 Re: [gnupic] Adding a DATE macro to gpsim, Peter Onion
Previous in thread: 20 Apr 2005 08:58:18 +0100 Re: [gnupic] Adding a DATE macro to gpsim, Craig Franklin
Next in thread: 20 Apr 2005 08:58:18 +0100 Re: [gnupic] Adding a DATE macro to gpsim, Peter Onion

Subject: Re: [gnupic] Adding a DATE macro to gpsim
From: Chris Emerson ####@####.####
Date: 20 Apr 2005 08:58:18 +0100
Message-Id: <20050420075806.GA23296@ixion.tartarus.org>

On Tue, Apr 19, 2005 at 04:58:32PM +0100, Peter Onion wrote:
> On Tue, 2005-04-19 at 16:31 +0100, Alex Holden wrote:
> > ####@####.#### wrote:
> > > Or, you could just define a macro from gpasm command line
> > > like:
> > >   gpasm -DDATE="18/4/2005" foo.asm
> > 
> > Or even:
> > 	gpasm -DDATE=`date +%Y-%m-%d` foo.asm
> 
> I used something like that while working out how to define symbols !
> 
> Thanks for all the helpful suggestions but I'll stick with my 9 line
> patch to gpasm and continue to use:
> 	gpasm foo.asm 

How about an even shorter wrapper script?  (Could even call it gpasm if
you wanted, put in an absolute path inside the script, and make sure
it's ahead of the binary on the path)

#!/bin/sh
gpasm -DDATE=`date +%Y-%m-%d` "$@"

Chris

Previous by date: 20 Apr 2005 08:58:18 +0100 Re: [gnupic] MPLAB ICD2, Sylvain Giroudon
Next by date: 20 Apr 2005 08:58:18 +0100 Re: [gnupic] Adding a DATE macro to gpsim, Peter Onion
Previous in thread: 20 Apr 2005 08:58:18 +0100 Re: [gnupic] Adding a DATE macro to gpsim, Craig Franklin
Next in thread: 20 Apr 2005 08:58:18 +0100 Re: [gnupic] Adding a DATE macro to gpsim, Peter Onion


Powered by ezmlm-browse 0.20.