]> granicus.if.org Git - file/commitdiff
Add compile_only
authorChristos Zoulas <christos@zoulas.com>
Wed, 3 Jul 2002 18:37:44 +0000 (18:37 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 3 Jul 2002 18:37:44 +0000 (18:37 +0000)
Makefile.in
src/print.c

index 737ab83f76613acfc3cfc427d69507339389269d..b2bc64c6f9e104fe9a596ba66e993d154768caa1 100644 (file)
@@ -122,7 +122,7 @@ missing mkinstalldirs
 
 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 
-TAR = gtar
+TAR = tar
 GZIP_ENV = --best
 SOURCES = $(file_SOURCES)
 OBJECTS = $(file_OBJECTS)
@@ -416,7 +416,7 @@ distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
-           cp -pr $$d/$$file $(distdir)/$$file; \
+           cp -pr $$/$$file $(distdir)/$$file; \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
index 57c154e7b73a3bfcb291c91e3bd3578ae838bcbf..38ca9d37351caad7d4292e34d74b82c4e92c80c2 100644 (file)
 #include <time.h>
 
 #ifndef lint
-FILE_RCSID("@(#)$Id: print.c,v 1.37 2002/07/03 18:26:38 christos Exp $")
+FILE_RCSID("@(#)$Id: print.c,v 1.38 2002/07/03 18:37:44 christos Exp $")
 #endif  /* lint */
 
 #define SZOF(a)        (sizeof(a) / sizeof(a[0]))
 
+#ifndef COMPILE_ONLY
 void
 mdump(struct magic *m)
 {
@@ -127,6 +128,7 @@ mdump(struct magic *m)
        }
        (void) fprintf(stderr, ",\"%s\"]\n", m->desc);
 }
+#endif
 
 /*
  * ckfputs - fputs, but with error checking
@@ -191,6 +193,7 @@ magwarn(const char *f, ...)
 }
 
 
+#ifndef COMPILE_ONLY
 char *
 fmttime(long v, int local)
 {
@@ -224,3 +227,4 @@ fmttime(long v, int local)
                *rt = '\0';
        return pp;
 }
+#endif