xref: /freebsd/contrib/file/magic/Magdir/kicad (revision dd41de95a84d979615a2ef11df6850622bf6184e)
1
2#------------------------------------------------------------------------------
3# $File: kicad,v 1.2 2020/05/06 14:03:28 christos Exp $
4# kicad:  file(1) magic for KiCad files
5#
6# See
7#
8#	http://kicad-pcb.org
9#
10
11# KiCad Schematic Document
120	    string  (kicad_sch
13>10	    byte    0x20		KiCad Schematic Document
14!:ext kicad_sch/kicad_sch-bak
15>>11	    string  (version
16>>>19	    byte    0x20
17>>>>20	    regex   [0-9.]+		(Version %s)
18
19# KiCad Schematic Document (Legacy)
200	    string  EESchema
21>8	    byte    0x20
22>>9	    string  Schematic
23>>>18	    byte    0x20		KiCad Schematic Document (Legacy)
24!:ext sch/bak
25>>>>24	    string  Version
26>>>>>31	    byte    0x20
27>>>>>>32    string  x			(Version %s)
28
29# KiCad Symbol Library
300	    string  (kicad_symbol_lib
31>17	    byte    0x20		KiCad Symbol Library
32!:ext kicad_sym
33>>18	    string  (version
34>>>26	    byte    0x20
35>>>>27	    regex   [0-9.]+		(Version %s)
36
37# KiCad Symbol Library (Legacy)
380	    string  EESchema-LIBRARY
39>16	    byte    0x20		KiCad Symbol Library (Legacy)
40!:ext lib
41>>17	    string  Version
42>>>24	    byte    0x20
43>>>>25	    string  x			(Version %s)
44
45# KiCad Symbol Library Documentation (Legacy)
460	    string  EESchema-DOCLIB
47>15	    byte    0x20		KiCad Symbol Library Documentation (Legacy)
48!:ext dcm
49>>17	    string  Version
50>>>24	    byte    0x20
51>>>>25	    string  x			(Version %s)
52
53# KiCad Board Layout
540	    string  (kicad_pcb
55>10	    byte    0x20		KiCad Board Layout
56!:ext kicad_pcb/kicad_pcb-bak
57>>11	    string  (version
58>>>19	    byte    0x20
59>>>>20	    regex   [0-9.]+		(Version %s)
60
61# KiCad Footprint
620	    string  (module
63>7	    byte    0x20		KiCad Footprint
64!:ext kicad_mod
65
66# KiCad Footprint (Legacy)
670	    string  PCBNEW-LibModule-V1	    KiCad Footprint (Legacy)
68!:ext mod
69
70# KiCad Netlist
710	    string  (export
72>7	    byte    0x20		KiCad Netlist
73!:ext net
74
75# KiCad Symbol Library Table
760	    string  (sym_lib_table
77>14	    byte    0xA			KiCad Symbol Library Table
78>14	    byte    0xD			KiCad Symbol Library Table
79>14	    byte    0x20		KiCad Symbol Library Table
80
81# KiCad Footprint Library Table
820	    string  (fp_lib_table
83>13	    byte    0xA			KiCad Footprint Library Table
84>13	    byte    0xD			KiCad Footprint Library Table
85>13	    byte    0x20		KiCad Footprint Library Table
86