diff options
| author | Michael Forney <mforney@mforney.org> | 2016-06-27 21:40:06 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-06-27 22:00:05 -0700 |
| commit | 791bf64e12c1e4d0370f583373e5833f898d119c (patch) | |
| tree | 16d0997daeaa6724b89f84d4dc1df6d675365f7b /core | |
| parent | b9c641e62e676a7b7c7f0454c8e085206549b326 (diff) | |
file: Use separate file for magic source list
Diffstat (limited to 'core')
| -rw-r--r-- | core/file/gen.rc | 32 | ||||
| -rw-r--r-- | core/file/magic.txt | 278 |
2 files changed, 279 insertions, 31 deletions
diff --git a/core/file/gen.rc b/core/file/gen.rc index 10337996..c86c1abe 100644 --- a/core/file/gen.rc +++ b/core/file/gen.rc @@ -45,37 +45,7 @@ exe file -d 'phony/$dir/headers' src/file.c libmagic.a '$builddir/core/zlib/libz file bin/file '$outdir'/file 755 file share/man/man1/file.1 '$outdir'/file.1 644 -# <cd src/magic/Magdir ; echo * | fmt -w 71 | awk '{print "\t" $0 "\\"}' -srcs=(\ - acorn adi adventure allegro alliant alpha amanda amigaos android\ - animation aout apl apple applix archive assembler asterix att3b audio\ - basis ber bflt bioinformatics blackberry blcr blender blit bout bsdi\ - bsi btsnoop c-lang c64 cad cafebabe cbor cddb chord cisco citrus\ - clarion claris clipper coff commands communications compress console\ - convex coverage cracklib ctags ctf cubemap cups dact database der\ - diamond diff digital dolby dump dyadic ebml editors efi elf encore epoc\ - erlang esri etf fcs filesystems finger flash flif fonts fortran frame\ - freebsd fsav fusecompress games gcc geo geos gimp gnome gnu gnumeric\ - gpt grace graphviz gringotts guile hitachi-sh hp human68k ibm370\ - ibm6000 icc iff images inform intel interleaf island ispell isz java\ - javascript jpeg karma kde keepass kerberos kml lecter lex lif linux\ - lisp llvm lua luks m4 mach macintosh macos magic mail.news make map\ - maple marc21 mathcad mathematica matroska mcrypt mercurial metastore\ - meteorological microfocus mime mips mirage misctools mkid mlssa mmdf\ - modem motorola mozilla msdos msooxml msvc msx mup music nasa natinst\ - ncr neko netbsd netscape netware news nitpicker oasis ocaml octave\ - ole2compounddocs olf os2 os400 os9 osf1 palm parix parrot pascal pbf\ - pbm pc88 pc98 pdf pdp perl pgf pgp pkgadd plan9 plus5 polyml printer\ - project psdbms pulsar pwsafe pyramid python qt revision riff rinex rpm\ - rtf ruby sc sccs scientific securitycerts selinux sendmail sequent\ - sereal sgi sgml sharc sinclair sisu sketch smalltalk smile sniffer\ - softquad spec spectrum sql ssh ssl sun symbos sysex tcl teapot terminfo\ - tex tgif ti-8x timezone troff tuxedo typeset unicode unknown uterus\ - uuencode vacuum-cleaner varied.out varied.script vax vicar virtual\ - virtutech visx vms vmware vorbis vxl warc weak windows wireless\ - wordprocessors wsdl x68000 xdelta xenix xilinx xo65 xwindows zfs zilog\ - zyxel\ -) +srcs=`{grep -v '^#' ../magic.txt} for(src in $srcs) build '$outdir'/magic/$src copy '$srcdir'/magic/Magdir/$src for(src in Header Localstuff) build '$outdir'/magic/$src copy '$srcdir'/magic/$src magic_outs=magic/^(Header Localstuff $srcs) diff --git a/core/file/magic.txt b/core/file/magic.txt new file mode 100644 index 00000000..48ca3ed1 --- /dev/null +++ b/core/file/magic.txt @@ -0,0 +1,278 @@ +# <cd src/magic/Magdir && printf '%s\n' * +acorn +adi +adventure +allegro +alliant +alpha +amanda +amigaos +android +animation +aout +apl +apple +applix +archive +assembler +asterix +att3b +audio +basis +ber +bflt +bioinformatics +blackberry +blcr +blender +blit +bout +bsdi +bsi +btsnoop +c-lang +c64 +cad +cafebabe +cbor +cddb +chord +cisco +citrus +clarion +claris +clipper +coff +commands +communications +compress +console +convex +coverage +cracklib +ctags +ctf +cubemap +cups +dact +database +der +diamond +diff +digital +dolby +dump +dyadic +ebml +editors +efi +elf +encore +epoc +erlang +esri +etf +fcs +filesystems +finger +flash +flif +fonts +fortran +frame +freebsd +fsav +fusecompress +games +gcc +geo +geos +gimp +gnome +gnu +gnumeric +gpt +grace +graphviz +gringotts +guile +hitachi-sh +hp +human68k +ibm370 +ibm6000 +icc +iff +images +inform +intel +interleaf +island +ispell +isz +java +javascript +jpeg +karma +kde +keepass +kerberos +kml +lecter +lex +lif +linux +lisp +llvm +lua +luks +m4 +mach +macintosh +macos +magic +mail.news +make +map +maple +marc21 +mathcad +mathematica +matroska +mcrypt +mercurial +metastore +meteorological +microfocus +mime +mips +mirage +misctools +mkid +mlssa +mmdf +modem +motorola +mozilla +msdos +msooxml +msvc +msx +mup +music +nasa +natinst +ncr +neko +netbsd +netscape +netware +news +nitpicker +oasis +ocaml +octave +ole2compounddocs +olf +os2 +os400 +os9 +osf1 +palm +parix +parrot +pascal +pbf +pbm +pc88 +pc98 +pdf +pdp +perl +pgf +pgp +pkgadd +plan9 +plus5 +polyml +printer +project +psdbms +pulsar +pwsafe +pyramid +python +qt +revision +riff +rinex +rpm +rtf +ruby +sc +sccs +scientific +securitycerts +selinux +sendmail +sequent +sereal +sgi +sgml +sharc +sinclair +sisu +sketch +smalltalk +smile +sniffer +softquad +spec +spectrum +sql +ssh +ssl +sun +symbos +sysex +tcl +teapot +terminfo +tex +tgif +ti-8x +timezone +troff +tuxedo +typeset +unicode +unknown +uterus +uuencode +vacuum-cleaner +varied.out +varied.script +vax +vicar +virtual +virtutech +visx +vms +vmware +vorbis +vxl +warc +weak +windows +wireless +wordprocessors +wsdl +x68000 +xdelta +xenix +xilinx +xo65 +xwindows +zfs +zilog +zyxel |
