[Magic-dev] Custom dstyle and cmap files

R. Timothy Edwards tim.edwards at multigig.com
Mon Dec 24 15:16:48 EST 2007


Dear Graham,

>    I bit the bullet and am using my own .magicrc file. Really what I didn't
> like was the fact that it is a hidden file. Users coming from Windows can
> easily miss the fact that important setup info is being set by a file that
> isn't visible with a normal ls command.
> 
>    Your suggestion below is good. The current problem with a custom styletype
> is that if the support files aren't found Magic errors out and the reason why
> isn't clear to the user. Having a minimum search path using the mos styletype
> as a fallback obviates that problem.

>> But that's a rather long-term project.  Instead, I would suggest
>> extending the "styletype <style>" statement in the techfile to be:
>>
>> 	styletype <style> [<path>]
>>
>> which would cause magic to first prepend <path> (if specified) to the
>> system search path.  The fallback position can always be to load the
>> "mos" styles if all else fails.

I just checked the latest version 7.5 code into CVS.  This includes all
the changes mentioned above:  The "styletype" keyword in the techfile
now takes additional (optional) path arguments.  The filename "magic_setup"
can be used in the current working directory as an alternative, non-hidden
replacement for ".magicrc".  Upon loading a new techfile, magic first
checks the existing database, and if there is no layout in it, it will
not print any warning messages about the dangers of changing technologies.

I have also added a number of bug fixes that are copies of changes made to
the stable magic-7.4 distribution.

The downside of this development distribution release is that I completely
overhauled the DRC code.  It passed a few simple cases that I threw at
it, but I have not done any extensive testing of different rules, and
I'm sure there are bugs in the code.  I hope that it will take only a few
weeks/revisions to work through the vast majority of cases.

					Regards,
					Tim

+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim)   | email: tim.edwards at multigig.com     |
| MultiGiG, Inc.                 | web:   http://www.multigig.com      |
| 100 Enterprise Way, Suite A-3  | phone: (831) 621-3283               |
| Scotts Valley, CA 95066        | cell:  (240) 401-0616               |
+--------------------------------+-------------------------------------+



More information about the magic-dev mailing list