* Import linux-x86-32/64 and darwin-x86-32 sflib includedirs * Simplify data installation for magic, egg, syscall and asm * Set R2_INCDIR in r_userconf * Make ragg2-cc much smarter - use ragg2 -v to get paths and version - accept new flags -a -b -k for arch, bits and kernel - supports crosscompilation --HG-- rename : libr/magic/d/OpenBSD => libr/magic/d/default/OpenBSD rename : libr/magic/d/archive => libr/magic/d/default/archive rename : libr/magic/d/cafebabe => libr/magic/d/default/cafebabe rename : libr/magic/d/cisco => libr/magic/d/default/cisco rename : libr/magic/d/database => libr/magic/d/default/database rename : libr/magic/d/editors => libr/magic/d/default/editors rename : libr/magic/d/elf => libr/magic/d/default/elf rename : libr/magic/d/filesystems => libr/magic/d/default/filesystems rename : libr/magic/d/flash => libr/magic/d/default/flash rename : libr/magic/d/freebsd => libr/magic/d/default/freebsd rename : libr/magic/d/gimp => libr/magic/d/default/gimp rename : libr/magic/d/images => libr/magic/d/default/images rename : libr/magic/d/java => libr/magic/d/default/java rename : libr/magic/d/jpeg => libr/magic/d/default/jpeg rename : libr/magic/d/linux => libr/magic/d/default/linux rename : libr/magic/d/mail.news => libr/magic/d/default/mail.news rename : libr/magic/d/matroska => libr/magic/d/default/matroska rename : libr/magic/d/mime => libr/magic/d/default/mime rename : libr/magic/d/msdos => libr/magic/d/default/msdos rename : libr/magic/d/netbsd => libr/magic/d/default/netbsd rename : libr/magic/d/pdf => libr/magic/d/default/pdf rename : libr/magic/d/perl => libr/magic/d/default/perl rename : libr/magic/d/python => libr/magic/d/default/python rename : libr/magic/d/riff => libr/magic/d/default/riff rename : libr/magic/d/sniffer => libr/magic/d/default/sniffer rename : libr/magic/d/sql => libr/magic/d/default/sql rename : libr/magic/d/sun => libr/magic/d/default/sun rename : libr/magic/d/uuencode => libr/magic/d/default/uuencode
58 lines
1.9 KiB
Text
58 lines
1.9 KiB
Text
# $OpenBSD: perl,v 1.3 2009/04/24 18:54:34 chl Exp $
|
|
|
|
#------------------------------------------------------------------------------
|
|
# perl: file(1) magic for Larry Wall's perl language.
|
|
#
|
|
# The `eval' lines recognizes an outrageously clever hack.
|
|
# Keith Waclena <keith@cerberus.uchicago.edu>
|
|
# Send additions to <perl5-porters@perl.org>
|
|
0 search/1/b #!\ /bin/perl Perl script text executable
|
|
!:mime application/x-perl
|
|
0 search/1 eval\ "exec\ /bin/perl Perl script text
|
|
!:mime application/x-perl
|
|
0 search/1/b #!\ /usr/bin/perl Perl script text executable
|
|
!:mime application/x-perl
|
|
0 search/1 eval\ "exec\ /usr/bin/perl Perl script text
|
|
!:mime application/x-perl
|
|
0 search/1/b #!\ /usr/local/bin/perl Perl script text executable
|
|
!:mime application/x-perl
|
|
0 search/1 eval\ "exec\ /usr/local/bin/perl Perl script text
|
|
!:mime application/x-perl
|
|
0 search/1 eval\ '(exit\ $?0)'\ &&\ eval\ 'exec Perl script text
|
|
!:mime application/x-perl
|
|
|
|
|
|
# by Dmitry V. Levin and Alexey Tourbin
|
|
# check the first line
|
|
0 search/1 package
|
|
0 regex \^package[\ \t]+[A-Za-z_]
|
|
>0 regex \^package[\ \t]+[0-9A-Za-z_:]+\ *; Perl5 module source text
|
|
# not 'p', check other lines
|
|
0 search/1 !p
|
|
>0 regex \^package[\ \t]+[0-9A-Za-z_:]+\ *;
|
|
>>0 regex \^1\ *;|\^(use|sub|my)\ .*[(;{=] Perl5 module source text
|
|
|
|
|
|
|
|
# Perl POD documents
|
|
# From: Tom Hukins <tom@eborcom.com>
|
|
0 search/1/b \=pod\n Perl POD document text
|
|
0 search/1/b \n\=pod\n Perl POD document text
|
|
0 search/1/b \=head1\ Perl POD document text
|
|
0 search/1/b \n\=head1\ Perl POD document text
|
|
0 search/1/b \=head2\ Perl POD document text
|
|
0 search/1/b \n\=head2\ Perl POD document text
|
|
|
|
# Perl Storable data files.
|
|
0 string perl-store perl Storable (v0.6) data
|
|
>4 byte >0 (net-order %d)
|
|
>>4 byte &01 (network-ordered)
|
|
>>4 byte =3 (major 1)
|
|
>>4 byte =2 (major 1)
|
|
|
|
0 string pst0 perl Storable (v0.7) data
|
|
>4 byte >0
|
|
>>4 byte &01 (network-ordered)
|
|
>>4 byte =5 (major 2)
|
|
>>4 byte =4 (major 2)
|
|
>>5 byte >0 (minor %d)
|