]> granicus.if.org Git - file/commitdiff
Automake support and misc cleanups from Rainer Orth
authorChristos Zoulas <christos@zoulas.com>
Sun, 14 Feb 1999 17:21:38 +0000 (17:21 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sun, 14 Feb 1999 17:21:38 +0000 (17:21 +0000)
Enable reading character and block special files from Dale R. Worley

configure
configure.in
src/Makefile [deleted file]
src/Makefile.std
src/patchlevel.h

index ab95282f3abd937706ed14220ee26c8dacb3d276..04cab3591ae2e3073ebc0ea9c30166ea23f8c1b1 100755 (executable)
--- a/configure
+++ b/configure
@@ -695,7 +695,7 @@ fi
 
 PACKAGE=file
 
-VERSION=3.26
+VERSION=3.27
 
 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
index 3fe3aa4880d743f067181a80585d933d55d319e1..111ba092a5e89bd51bbc122f23279760f88dccf4 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT(file.c)
-AM_INIT_AUTOMAKE(file, 3.26)
+AM_INIT_AUTOMAKE(file, 3.27)
 AM_CONFIG_HEADER(config.h)
 
 AC_MSG_CHECKING(for builtin ELF support)
diff --git a/src/Makefile b/src/Makefile
deleted file mode 100644 (file)
index ffe5a6b..0000000
+++ /dev/null
@@ -1,175 +0,0 @@
-# Generated automatically from Makefile.in by configure.
-# Makefile for file(1) cmd. 
-# Copyright (c) Ian F. Darwin 86/09/01 - see LEGAL.NOTICE.
-# @(#)$Id: Makefile,v 1.58 1999/01/13 15:43:58 christos Exp $
-#
-# This software is not subject to any license of the American Telephone
-# and Telegraph Company or of the Regents of the University of California.
-#
-# Permission is granted to anyone to use this software for any purpose on
-# any computer system, and to alter it and redistribute it freely, subject
-# to the following restrictions:
-#
-# 1. The author is not responsible for the consequences of use of this
-#    software, no matter how awful, even if they arise from flaws in it.
-#
-# 2. The origin of this software must not be misrepresented, either by
-#    explicit claim or by omission.  Since few users ever read sources,
-#    credits must appear in the documentation.
-#
-# 3. Altered versions must be plainly marked as such, and must not be
-#    misrepresented as being the original software.  Since few users
-#    ever read sources, credits must appear in the documentation.
-#
-# 4. This notice may not be removed or altered.
-VERSION        = 3.26
-SHELL  = /bin/sh
-#MAGIC = /etc/magic
-prefix = /usr/local
-INSTALLCMD = /usr/bin/install -c
-MAGICDIR = ${prefix}/share
-MAGIC  = $(MAGICDIR)/magic
-DEFS   = -DMAGIC='"$(MAGIC)"' -DBUILTIN_ELF -DELFCORE -DHAVE_CONFIG_H
-CPPFLAGS = $(DEFS)
-CC     = gcc
-#COPTS = -O -g         # newer compilers allow both; else drop -O
-# For truly antique environments, use this for (dummy) include files:
-#COPTS = -O # -Ilocalinc
-#CFLAGS        = $(COPTS) $(DEFS)
-CFLAGS = -g -O2
-#LDFLAGS       = $(COPTS) # -Bstatic   # older gdb couldn't handle shared libs
-SHAR   = bundle
-OFILE  = /usr/bin/file         # old or distributed version, for comparison
-# Where new binary lives; typically /usr/local (BSD), /usr/lbin (USG).
-BINDIR = ${prefix}/bin
-# For installing our man pages; 
-# MANCxxx is manual section for Commands, MANFxxx is section for file formats.
-# MANxDIR is directory names; MANxEXT is the filename extention. Usual values:
-# Variable     V7              4BSD            Sys V
-# MANCDIR      /usr/man/man1   /usr/man/man1   /usr/man/u_man/man1
-# MANFDIR      /usr/man/man5   /usr/man/man5   /usr/man/u_man/man4
-# MANCEXT      1               1               1
-# MANFEXT      5               5               4
-# --- possible alternative for 4BSD ---
-# MANCDIR                      /usr/local/man/man1
-# MANCEXT                      1
-# or
-# MANCDIR                      /usr/man/manl
-# MANCEXT                      l
-# --- possible alternative for USG ---
-# MANCDIR                      /usr/man/local/man1
-# MANCEXT                      1
-
-MANCDIR        = ${prefix}/man/man1
-MANCEXT        = 1
-MANFDIR        = ${prefix}/man/man4
-MANFEXT        = 4
-
-# There are no system-dependant configuration options (except maybe CFLAGS).
-# Uncomment any of these that is missing from your "standard" library.
-LOCALSRCS = # localsrc/getopt.c localsrc/strtol.c \
-#              localsrc/strtok.c localsrc/strchr.c
-LOCALOBJS = # localsrc/getopt.o localsrc/strtol.o \
-#              localsrc/strtok.o localsrc/strchr.o
-# These are not compiled in unless you use -Ilocalinc, but
-# are not commented out as "make dist" &c use them.
-LOCALINC = # localinc/*.h localinc/sys/*.h
-
-SRCS = file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \
-       compress.c is_tar.c readelf.c internat.c \
-       print.c $(LOCALSRCS) $(LOCALINC)
-OBJS = file.o apprentice.o fsmagic.o softmagic.o ascmagic.o \
-       compress.o is_tar.o readelf.o internat.o \
-       print.o $(LOCALOBJS)
-HDRS = file.h names.h patchlevel.h readelf.h tar.h
-
-AUTOSRC=configure configure.in install-sh config.h.in Makefile.in
-ALLSRC = LEGAL.NOTICE README MAINT PORTING $(SRCS) $(HDRS) \
-        Makefile.std file.man magic.man magic2mime $(AUTOSRC) \
-        Localstuff Header
-ALLMAGIC =   Magdir/[a-z]*
-
-all:           file magic file.${MANCEXT} magic.${MANFEXT}
-
-TESTFILES = * tst/*
-try:           all $(OFILE)
-               cd tst; $(MAKE)
-               time $(OFILE) $(TESTFILES) >/tmp/t1 # can't use ./magic
-               time ./file -m ./magic $(TESTFILES) >/tmp/t2
-               -diff -b /tmp/t[12]
-               what ./file >lastnocore
-
-file:          $(OBJS)
-               $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@
-lint:          $(SRCS)
-               lint -ha $(DEFS) $(SRCS) | tee $@
-magic:         Header Localstuff Magdir
-               cat Header Localstuff Magdir/[a-z]* > $@
-
-ascmagic.o:    names.h
-
-compress.o apprentice.o ascmagic.o file.o fsmagic.o print.o softmagic.o: file.h
-
-install:       file magic
-               -mkdir $(BINDIR) $(MAGICDIR) $(MANCDIR) $(MANFDIR)
-               $(INSTALLCMD) file      $(BINDIR)/file
-               $(INSTALLCMD) magic $(MAGIC)
-               $(INSTALLCMD) file.${MANCEXT} $(MANCDIR)/file.$(MANCEXT)
-               $(INSTALLCMD) magic.${MANFEXT} $(MANFDIR)/magic.$(MANFEXT)
-
-install.man: file.${MANCEXT} magic.${MANFEXT}
-               cp file.${MANCEXT} $(MANCDIR)/file.$(MANCEXT)
-               cp magic.${MANFEXT} $(MANFDIR)/magic.$(MANFEXT)
-
-clean:
-               rm -f *.o core file magic lint dist.* MANIFEST \
-                     magic.${MANFEXT} file.${MANCEXT} \
-                     config.h config.status config.cache config.log
-clobber:
-               cd tst; $(MAKE) clean
-
-
-magic.${MANFEXT} :     Makefile magic.man
-               @rm -f $@
-               sed -e s@__CSECTION__@${MANCEXT}@g \
-                   -e s@__FSECTION__@${MANFEXT}@g \
-                   -e s@__VERSION__@${VERSION}@g \
-                   -e s@__MAGIC__@${MAGIC}@g magic.man > $@
-
-file.${MANCEXT} :      Makefile file.man
-               @rm -f $@
-               sed -e s@__CSECTION__@${MANCEXT}@g \
-                   -e s@__FSECTION__@${MANFEXT}@g \
-                   -e s@__VERSION__@${VERSION}@g \
-                   -e s@__MAGIC__@${MAGIC}@g file.man > $@
-
-send:          dist
-               ftp ftp.cs
-
-dist:          dist.src dist.magic
-               @echo Now check this patchlevel!
-               ident patchlevel.h
-
-dist.src:      $(ALLSRC) MANIFEST
-#              Some versions of shar can't handle a single file from
-#              a subdirectory, so we manually insert mkdir as needed.
-#              The point is to exclude all the generable targets in tst.
-               (echo mkdir localinc localinc/sys localsrc tst; \
-                       $(SHAR) $(ALLSRC) MANIFEST) > $@
-
-rcsdiff:       $(ALLSRC)
-               rcsdiff -q RCS/*
-
-MANIFEST:      $(ALLSRC)
-               ident $(ALLSRC) > MANIFEST
-dist.magic:    Magdir
-#              As above, but to exclude Magdir/RCS from being shipped.
-               (echo mkdir Magdir; $(SHAR) $(ALLMAGIC)) >$@
-
-tar:           $(ALLSRC) $(ALLMAGIC)
-               -rm -fr file-${VERSION}
-               -mkdir file-${VERSION} file-${VERSION}/Magdir
-               ln $(ALLSRC) file-${VERSION}
-               ln ${ALLMAGIC} file-${VERSION}/Magdir
-               tar cvf file-${VERSION}.tar file-${VERSION}
-               -rm -fr file-${VERSION}
index c67a24029d330f5b32c2c2ee27ee52e407bc67a6..4474726007096a0aad02272eb4fc82b9bf742511 100644 (file)
@@ -1,6 +1,6 @@
 # Makefile for file(1) cmd. 
 # Copyright (c) Ian F. Darwin 86/09/01 - see LEGAL.NOTICE.
-# @(#)$Id: Makefile.std,v 1.5 1998/09/12 13:17:52 christos Exp $
+# @(#)$Id: Makefile.std,v 1.6 1999/02/14 17:21:38 christos Exp $
 #
 # This software is not subject to any license of the American Telephone
 # and Telegraph Company or of the Regents of the University of California.
@@ -21,7 +21,7 @@
 #    ever read sources, credits must appear in the documentation.
 #
 # 4. This notice may not be removed or altered.
-VERSION        = 3.26
+VERSION        = 3.27
 SHELL  = /bin/sh
 #MAGIC = /etc/magic
 MAGIC  = /usr/local/etc/magic
index d74f00180972e2c54845ac35867cd6b6a8f57e92..60223f36289b03f6218e015a42c5f69f9f5d07b1 100644 (file)
@@ -1,11 +1,15 @@
 #define        FILE_VERSION_MAJOR      3
-#define        patchlevel              26
+#define        patchlevel              27
 
 /*
  * Patchlevel file for Ian Darwin's MAGIC command.
- * $Id: patchlevel.h,v 1.26 1998/09/12 13:19:39 christos Exp $
+ * $Id: patchlevel.h,v 1.27 1999/02/14 17:21:41 christos Exp $
  *
  * $Log: patchlevel.h,v $
+ * Revision 1.27  1999/02/14 17:21:41  christos
+ * Automake support and misc cleanups from Rainer Orth
+ * Enable reading character and block special files from Dale R. Worley
+ *
  * Revision 1.26  1998/09/12 13:19:39  christos
  * - add support for bi-endian indirect offsets (Richard Verhoeven)
  * - add recognition for bcpl (Joseph Myers)