summaryrefslogtreecommitdiff
path: root/core/file
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-12-11 16:04:20 -0800
committerMichael Forney <mforney@mforney.org>2016-12-13 23:10:30 -0800
commit293f5a93b77d92fd65db7f3d0df654f102e46cfb (patch)
tree6ecd1170e3dd793862dd852814dc1b4cd5e44260 /core/file
parent9a506a6834df01a26795cea222b410f206efa9fa (diff)
Move to flat package hierarchy
Note to self: never try to move submodules again To migrate your existing submodules (more or less): set -x set -e mkdir .git/modules/pkg for old in */*/src ; do new="pkg/${old#*/}" if ! [ -f "$old/.git" ] || [ "${old%%/*}" = pkg ] ; then continue fi git -C ".git/modules/$old" config core.worktree "../../../../../$new" rmdir "$new" mv "$old" "$new" sed -e "s,$old,$new," "$new/.git" > "$new/.git.tmp" mv "$new/.git.tmp" "$new/.git" mkdir ".git/modules/${new%/src}" mv ".git/modules/$old" ".git/modules/$new" rm "${old%/src}"/*.ninja mv "${old%/src}"/*.tar.{gz,xz,bz2} "${new%/src}/" rmdir "${old%/src}" || true done sed -e 's,^\[submodule "[^/]*/,[submodule "pkg/,' .git/config > .git/config.tmp mv .git/config.tmp .git/config
Diffstat (limited to 'core/file')
-rw-r--r--core/file/config.h97
-rw-r--r--core/file/gen.rc59
-rw-r--r--core/file/magic.txt282
-rw-r--r--core/file/rev1
m---------core/file/src0
5 files changed, 0 insertions, 439 deletions
diff --git a/core/file/config.h b/core/file/config.h
deleted file mode 100644
index 9bdf61af..00000000
--- a/core/file/config.h
+++ /dev/null
@@ -1,97 +0,0 @@
-#include <config-posix.h>
-
-/* #undef AC_APPLE_UNIVERSAL_BUILD */
-#define BUILTIN_ELF 1
-#define ELFCORE 1
-#define HAVE_ASPRINTF 1
-#define HAVE_DECL_DAYLIGHT 1
-#define HAVE_DECL_TZNAME 1
-#define HAVE_ERR_H 1
-/* #undef HAVE_FMTCHECK */
-#define HAVE_GETOPT_H 1
-#define HAVE_GETOPT_LONG 1
-#define HAVE_GETPAGESIZE 1
-#define HAVE_INTPTR_T 1
-/* #undef HAVE_LIBGNURX */
-#define HAVE_LIBZ 1
-#define HAVE_MBSTATE_T 1
-#define HAVE_MEMORY_H 1
-#define HAVE_MKOSTEMP 1
-#define HAVE_SIG_T 1
-#define HAVE_STRCASESTR 1
-#define HAVE_STRLCAT 1
-#define HAVE_STRLCPY 1
-#define HAVE_STRUCT_OPTION 1
-/* #undef HAVE_STRUCT_TM_TM_GMTOFF */
-#define HAVE_STRUCT_TM_TM_ZONE 1
-#define HAVE_SYS_PARAM_H 1
-/* #undef HAVE_SYS_UTIME_H */
-#define HAVE_TM_ISDST 1
-#define HAVE_TM_ZONE 1
-#define HAVE_VASPRINTF 1
-/* #undef HAVE_VFORK_H */
-/* #undef HAVE_XLOCALE_H */
-#define HAVE_ZLIB_H 1
-#define LT_OBJDIR ".libs/"
-/* #undef MAJOR_IN_MKDEV */
-/* #undef MAJOR_IN_SYSMACROS */
-#define PACKAGE "file"
-#define PACKAGE_BUGREPORT "christos@astron.com"
-#define PACKAGE_NAME "file"
-#define PACKAGE_STRING "file 5.29"
-#define PACKAGE_TARNAME "file"
-#define PACKAGE_URL ""
-#define PACKAGE_VERSION "5.29"
-/* #undef TM_IN_SYS_TIME */
-#ifndef _ALL_SOURCE
-# define _ALL_SOURCE 1
-#endif
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE 1
-#endif
-#ifndef _POSIX_PTHREAD_SEMANTICS
-# define _POSIX_PTHREAD_SEMANTICS 1
-#endif
-#ifndef _TANDEM_SOURCE
-# define _TANDEM_SOURCE 1
-#endif
-#ifndef __EXTENSIONS__
-# define __EXTENSIONS__ 1
-#endif
-#define VERSION "5.29"
-#if defined AC_APPLE_UNIVERSAL_BUILD
-# if defined __BIG_ENDIAN__
-# define WORDS_BIGENDIAN 1
-# endif
-#else
-# ifndef WORDS_BIGENDIAN
-/* # undef WORDS_BIGENDIAN */
-# endif
-#endif
-#define ZLIBSUPPORT 1
-#ifndef _DARWIN_USE_64_BIT_INODE
-# define _DARWIN_USE_64_BIT_INODE 1
-#endif
-/* #undef _FILE_OFFSET_BITS */
-/* #undef _LARGEFILE_SOURCE */
-/* #undef _LARGE_FILES */
-/* #undef _MINIX */
-/* #undef _POSIX_1_SOURCE */
-/* #undef _POSIX_SOURCE */
-/* #undef _UINT32_T */
-/* #undef _UINT64_T */
-/* #undef _UINT8_T */
-/* #undef const */
-/* #undef int32_t */
-/* #undef int64_t */
-/* #undef intptr_t */
-/* #undef mbstate_t */
-/* #undef off_t */
-/* #undef pid_t */
-/* #undef size_t */
-/* #undef uint16_t */
-/* #undef uint32_t */
-/* #undef uint64_t */
-/* #undef uint8_t */
-/* #undef uintptr_t */
-/* #undef vfork */
diff --git a/core/file/gen.rc b/core/file/gen.rc
deleted file mode 100644
index 5547d101..00000000
--- a/core/file/gen.rc
+++ /dev/null
@@ -1,59 +0,0 @@
-version=5.29
-cflags\
- -Wall\
- -D HAVE_CONFIG_H\
- -D 'MAGIC=''"/share/file/magic"''' \
- -D _GNU_SOURCE\
- -isystem '$builddir'/core/zlib/include\
- -I include\
- -I '$dir' \
- -I '$outdir'/include
-
-build '$outdir'/include/magic.h sed '$srcdir'/src/magic.h.in ; with\
- expr s,X.YY,`{echo $version | tr -d .}^,
-phony headers '$outdir'/include/magic.h
-
-build '$outdir'/file.1 sed '$srcdir'/doc/file.man ; exprs=(\
- -e s,__CSECTION__,1,g\
- -e s,__FSECTION__,5,g\
- -e s,__VERSION__,$version,g\
- -e s,__MAGIC__,/share/file/magic,g\
-) with expr $"exprs
-
-phony deps ('$dir' core/zlib)^/headers
-
-lib libmagic.a -d '$dir'/deps src/^(\
- magic.c\
- apprentice.c\
- softmagic.c\
- ascmagic.c\
- encoding.c\
- compress.c\
- is_tar.c\
- readelf.c\
- print.c\
- fsmagic.c\
- funcs.c\
- apptype.c\
- der.c\
- cdf.c\
- cdf_time.c\
- readcdf.c\
- \
- fmtcheck.c\
-)
-
-exe file -d '$dir'/headers src/file.c libmagic.a '$builddir/core/zlib/libz.a'
-file bin/file '$outdir'/file 755
-file share/man/man1/file.1 '$outdir'/file.1 644
-
-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)
-
-rule magic 'cd $outdir && file -C -m magic'
-build '$outdir'/magic.mgc magic '|' '$outdir'/$magic_outs
-file share/file/magic.mgc '$outdir'/magic.mgc 644
-
-fetch git
diff --git a/core/file/magic.txt b/core/file/magic.txt
deleted file mode 100644
index 89286288..00000000
--- a/core/file/magic.txt
+++ /dev/null
@@ -1,282 +0,0 @@
-# <cd src/magic/Magdir && printf '%s\n' *
-acorn
-adi
-adventure
-algol68
-allegro
-alliant
-alpha
-amanda
-amigaos
-android
-animation
-aout
-apl
-apple
-application
-applix
-apt
-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
-psl
-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
diff --git a/core/file/rev b/core/file/rev
deleted file mode 100644
index 0cfbf088..00000000
--- a/core/file/rev
+++ /dev/null
@@ -1 +0,0 @@
-2
diff --git a/core/file/src b/core/file/src
deleted file mode 160000
-Subproject 015b0cdce1a0abb68ab99510e7fc8d2f77e8ec7