chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] 'version' file not being bundled in eggs in Chicken


From: Felix
Subject: Re: [Chicken-users] 'version' file not being bundled in eggs in Chicken 4?
Date: Thu, 08 Jul 2010 12:27:29 +0200 (CEST)

From: Alejandro Forero Cuervo <address@hidden>
Subject: Re: [Chicken-users] 'version' file not being bundled in eggs in 
Chicken 4?
Date: Thu, 8 Jul 2010 11:39:42 +0200

>> From: Alejandro Forero Cuervo <address@hidden>
>> Subject: [Chicken-users] 'version' file not being bundled in eggs in Chicken 
>> 4?
>> Date: Thu, 8 Jul 2010 01:22:54 +0200
>> 
>> > I seem to recall that in Chicken 3, when an egg did not contain a
>> > 'version' file, one would be created automatically with the current
>> > version (based on the name of the subdirectory of the tags directory).
>> > Is this functionality gone from Chicken 4?  I just looked at my recent
>> > eggs (format-compiler, format-compiler-base and embedded-test) and
>> > they don't seem to have this file.  It was convenient to save egg
>> > authors from having to redundantly specify the name of the version.
>> > Maybe we could reinstante this?
>> > 
>> 
>> Use
>> 
>>   `(extension-name-and-version)' ==> (<name> <version>)
> 
> This wouldn't work.  I'm talking about the setup script, where I used
> to do:
> 
>   (install-extension 'foo
>     ...
>     `(...
>       (version ,(if (file-exists? "version")
>                   (with-input-from-file "version" read)
>                   "unknown"))))
> 

This parameter is only available (and specifically intended to be
used) in the setup script: you could do

(install-extension 'foo
  ...
  `(version ,(cadr (extension-name-and-version))) )


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]