tools: Move dumpscan into its own directory
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 17 Apr 2012 21:28:14 +0000 (22:28 +0100)
committerDerrick Brashear <shadow@dementix.org>
Wed, 18 Apr 2012 19:44:17 +0000 (12:44 -0700)
Move dumpscan into its own directory, so that it's Makefile rules can
be better contained, and not pollute the whole 'tools/' namespace

Change-Id: Ic58d007824ab802eae469dd2996300f80671a3b8
Reviewed-on: http://gerrit.openafs.org/7239
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>

36 files changed:
Makefile.in
configure.ac
src/tools/Makefile.in
src/tools/dumpscan/Makefile.in [new file with mode: 0644]
src/tools/dumpscan/TEMPLATE [moved from src/tools/TEMPLATE with 100% similarity]
src/tools/dumpscan/afsdump_dirlist.c [moved from src/tools/afsdump_dirlist.c with 100% similarity]
src/tools/dumpscan/afsdump_extract.c [moved from src/tools/afsdump_extract.c with 100% similarity]
src/tools/dumpscan/afsdump_scan.c [moved from src/tools/afsdump_scan.c with 100% similarity]
src/tools/dumpscan/afsdump_xsed.c [moved from src/tools/afsdump_xsed.c with 100% similarity]
src/tools/dumpscan/backuphdr.c [moved from src/tools/backuphdr.c with 100% similarity]
src/tools/dumpscan/directory.c [moved from src/tools/directory.c with 100% similarity]
src/tools/dumpscan/dump.c [moved from src/tools/dump.c with 100% similarity]
src/tools/dumpscan/dumpfmt.h [moved from src/tools/dumpfmt.h with 100% similarity]
src/tools/dumpscan/dumpscan.h [moved from src/tools/dumpscan.h with 100% similarity]
src/tools/dumpscan/dumpscan_errs.et [moved from src/tools/dumpscan_errs.et with 100% similarity]
src/tools/dumpscan/dumptool.c [moved from src/tools/dumptool.c with 100% similarity]
src/tools/dumpscan/int64.c [moved from src/tools/int64.c with 100% similarity]
src/tools/dumpscan/intNN.h [moved from src/tools/intNN.h with 100% similarity]
src/tools/dumpscan/internal.h [moved from src/tools/internal.h with 100% similarity]
src/tools/dumpscan/parsedump.c [moved from src/tools/parsedump.c with 100% similarity]
src/tools/dumpscan/parsetag.c [moved from src/tools/parsetag.c with 100% similarity]
src/tools/dumpscan/parsevnode.c [moved from src/tools/parsevnode.c with 100% similarity]
src/tools/dumpscan/parsevol.c [moved from src/tools/parsevol.c with 100% similarity]
src/tools/dumpscan/pathname.c [moved from src/tools/pathname.c with 100% similarity]
src/tools/dumpscan/primitive.c [moved from src/tools/primitive.c with 100% similarity]
src/tools/dumpscan/repair.c [moved from src/tools/repair.c with 100% similarity]
src/tools/dumpscan/stagehdr.c [moved from src/tools/stagehdr.c with 100% similarity]
src/tools/dumpscan/stagehdr.h [moved from src/tools/stagehdr.h with 100% similarity]
src/tools/dumpscan/util.c [moved from src/tools/util.c with 100% similarity]
src/tools/dumpscan/xf_errs.et [moved from src/tools/xf_errs.et with 100% similarity]
src/tools/dumpscan/xf_files.c [moved from src/tools/xf_files.c with 100% similarity]
src/tools/dumpscan/xf_printf.c [moved from src/tools/xf_printf.c with 100% similarity]
src/tools/dumpscan/xf_profile.c [moved from src/tools/xf_profile.c with 100% similarity]
src/tools/dumpscan/xf_rxcall.c [moved from src/tools/xf_rxcall.c with 100% similarity]
src/tools/dumpscan/xfiles.c [moved from src/tools/xfiles.c with 100% similarity]
src/tools/dumpscan/xfiles.h [moved from src/tools/xfiles.h with 100% similarity]

index 21dee84..d35f4a6 100644 (file)
@@ -908,6 +908,7 @@ distclean: clean
        src/tests/run-tests \
        src/tests/auth/Makefile \
        src/tools/Makefile \
+       src/tools/dumpscan/Makefile \
        src/tsalvaged/Makefile \
        src/tsm41/Makefile \
        src/tvolser/Makefile \
index af9b181..6d3dc5c 100644 (file)
@@ -228,6 +228,7 @@ src/tbutc/Makefile \
 src/tests/Makefile \
 src/tests/run-tests \
 src/tools/Makefile \
+src/tools/dumpscan/Makefile \
 src/tsalvaged/Makefile \
 src/tsm41/Makefile \
 src/tvolser/Makefile \
index 77a1f72..d61a947 100644 (file)
@@ -1,108 +1,7 @@
-srcdir         = @srcdir@
-include @TOP_OBJDIR@/src/config/Makefile.config
-include @TOP_OBJDIR@/src/config/Makefile.lwp
+srcdir=@srcdir@
 
+SUBDIRS=dumpscan
 
-SHELL          = /bin/sh
+all dest install clean distclean:
+       @for A in $(SUBDIRS); do cd $$A && $(MAKE) $@ && cd .. || exit 1; done
 
-INCDIRS=-I${TOP_OBJDIR}/src/config -I${TOP_INCDIR}/afs -I${TOP_INCDIR}
-INCLIBS=-L${SRCDIR}/lib/afs -L${TOP_LIBDIR}
-MODULE_CFLAGS=-DNATIVE_UINT64=afs_uint64
-
-LIBS=\
-       libdumpscan.a \
-       libxfiles.a \
-       ${TOP_LIBDIR}/libauth.a \
-       ${TOP_LIBDIR}/libaudit.a \
-       ${TOP_LIBDIR}/libvolser.a \
-       ${TOP_LIBDIR}/libvldb.a \
-       ${TOP_LIBDIR}/libubik.a \
-       ${TOP_LIBDIR}/librxkad.a \
-       ${TOP_LIBDIR}/libsys.a \
-       ${TOP_LIBDIR}/librx.a \
-       ${TOP_LIBDIR}/liblwp.a \
-       ${TOP_LIBDIR}/util.a \
-       $(TOP_LIBDIR)/libopr.a \
-       ${TOP_LIBDIR}/libafscom_err.a \
-       $(LIB_roken) \
-       ${XLIBS}
-
-OBJS_afsdump_scan    = afsdump_scan.o repair.o
-OBJS_afsdump_xsed    = afsdump_xsed.o repair.o
-OBJS_libxfiles.a     = xfiles.o xf_errs.o xf_printf.o int64.o \
-                       xf_files.o xf_rxcall.o xf_profile.o
-OBJS_libdumpscan.a   = primitive.o util.o dumpscan_errs.o parsetag.o \
-                       parsedump.o parsevol.o parsevnode.o dump.o \
-                       directory.o pathname.o backuphdr.o stagehdr.o
-
-TARGETS = libxfiles.a libdumpscan.a \
-          afsdump_scan afsdump_dirlist afsdump_extract dumptool
-
-all: libxfiles.a libdumpscan.a \
-       afsdump_scan afsdump_dirlist afsdump_extract dumptool
-
-generated: xf_errs.c xf_errs.h dumpscan_errs.c dumpscan_errs.h
-
-afsdump_scan: libxfiles.a libdumpscan.a $(OBJS_afsdump_scan)
-       $(AFS_LDRULE) $(OBJS_afsdump_scan) $(LIBS)
-
-afsdump_xsed: libxfiles.a libdumpscan.a $(OBJS_afsdump_xsed)
-       $(AFS_LDRULE) $(OBJS_afsdump_xsed) $(LIBS)
-
-afsdump_dirlist: libxfiles.a libdumpscan.a afsdump_dirlist.o
-       $(AFS_LDRULE) afsdump_dirlist.o $(LIBS)
-
-afsdump_extract: libxfiles.a libdumpscan.a afsdump_extract.o
-       $(AFS_LDRULE) afsdump_extract.o $(LIBS)
-
-null-search: libxfiles.a libdumpscan.a null-search.c
-       $(AFS_LDRULE) null-search.c $(LIBS)
-
-dumptool: dumptool.c
-       $(AFS_LDRULE) dumptool.c
-
-libxfiles.a: $(OBJS_libxfiles.a)
-       -rm -f libxfiles.a
-       $(AR) r libxfiles.a $(OBJS_libxfiles.a)
-       $(RANLIB) libxfiles.a
-
-libdumpscan.a: $(OBJS_libdumpscan.a)
-       -rm -f libdumpscan.a
-       $(AR) r libdumpscan.a $(OBJS_libdumpscan.a)
-       $(RANLIB) libdumpscan.a
-
-xf_errs.c xf_errs.h: xf_errs.et
-       $(COMPILE_ET) xf_errs.et
-
-dumpscan_errs.c dumpscan_errs.h: dumpscan_errs.et
-       $(COMPILE_ET) dumpscan_errs.et
-
-util.o xfiles.o xf_files.o: xf_errs.h
-backuphdr.o directory.o parsedump.o parsetag.o: dumpscan_errs.h
-parsevnode.o parsevol.o pathname.o stagehdr.o:  dumpscan_errs.h
-util.o:                                         dumpscan_errs.h
-
-# repair addresses the same storage as two different types of structs at the
-# same time.
-CFLAGS_repair.o = @CFLAGS_NOSTRICT@
-repair.o: repair.c dumpscan_errs.h
-
-${TOP_LIBDIR}/libxfiles.a: libxfiles.a
-       ${INSTALL_DATA} $? $@
-
-${TOP_LIBDIR}/libdumpscan.a: libdumpscan.a
-       ${INSTALL_DATA} $? $@
-
-dest:
-
-install:
-
-uninstall:
-
-clean:
-       -rm -f xf_errs.c xf_errs.h dumpscan_errs.c dumpscan_errs.h *.o \
-       $(TARGETS)
-
-include ../config/Makefile.version
-
-.PHONY:                all install clean realclean distclean mostlyclean install uninstall
diff --git a/src/tools/dumpscan/Makefile.in b/src/tools/dumpscan/Makefile.in
new file mode 100644 (file)
index 0000000..e9eafb9
--- /dev/null
@@ -0,0 +1,108 @@
+srcdir         = @srcdir@
+include @TOP_OBJDIR@/src/config/Makefile.config
+include @TOP_OBJDIR@/src/config/Makefile.lwp
+
+
+SHELL          = /bin/sh
+
+INCDIRS=-I${TOP_OBJDIR}/src/config -I${TOP_INCDIR}/afs -I${TOP_INCDIR}
+INCLIBS=-L${SRCDIR}/lib/afs -L${TOP_LIBDIR}
+MODULE_CFLAGS=-DNATIVE_UINT64=afs_uint64
+
+LIBS=\
+       libdumpscan.a \
+       libxfiles.a \
+       ${TOP_LIBDIR}/libauth.a \
+       ${TOP_LIBDIR}/libaudit.a \
+       ${TOP_LIBDIR}/libvolser.a \
+       ${TOP_LIBDIR}/libvldb.a \
+       ${TOP_LIBDIR}/libubik.a \
+       ${TOP_LIBDIR}/librxkad.a \
+       ${TOP_LIBDIR}/libsys.a \
+       ${TOP_LIBDIR}/librx.a \
+       ${TOP_LIBDIR}/liblwp.a \
+       ${TOP_LIBDIR}/util.a \
+       $(TOP_LIBDIR)/libopr.a \
+       ${TOP_LIBDIR}/libafscom_err.a \
+       $(LIB_roken) \
+       ${XLIBS}
+
+OBJS_afsdump_scan    = afsdump_scan.o repair.o
+OBJS_afsdump_xsed    = afsdump_xsed.o repair.o
+OBJS_libxfiles.a     = xfiles.o xf_errs.o xf_printf.o int64.o \
+                       xf_files.o xf_rxcall.o xf_profile.o
+OBJS_libdumpscan.a   = primitive.o util.o dumpscan_errs.o parsetag.o \
+                       parsedump.o parsevol.o parsevnode.o dump.o \
+                       directory.o pathname.o backuphdr.o stagehdr.o
+
+TARGETS = libxfiles.a libdumpscan.a \
+          afsdump_scan afsdump_dirlist afsdump_extract dumptool
+
+all: libxfiles.a libdumpscan.a \
+       afsdump_scan afsdump_dirlist afsdump_extract dumptool
+
+generated: xf_errs.c xf_errs.h dumpscan_errs.c dumpscan_errs.h
+
+afsdump_scan: libxfiles.a libdumpscan.a $(OBJS_afsdump_scan)
+       $(AFS_LDRULE) $(OBJS_afsdump_scan) $(LIBS)
+
+afsdump_xsed: libxfiles.a libdumpscan.a $(OBJS_afsdump_xsed)
+       $(AFS_LDRULE) $(OBJS_afsdump_xsed) $(LIBS)
+
+afsdump_dirlist: libxfiles.a libdumpscan.a afsdump_dirlist.o
+       $(AFS_LDRULE) afsdump_dirlist.o $(LIBS)
+
+afsdump_extract: libxfiles.a libdumpscan.a afsdump_extract.o
+       $(AFS_LDRULE) afsdump_extract.o $(LIBS)
+
+null-search: libxfiles.a libdumpscan.a null-search.c
+       $(AFS_LDRULE) null-search.c $(LIBS)
+
+dumptool: dumptool.c
+       $(AFS_LDRULE) dumptool.c
+
+libxfiles.a: $(OBJS_libxfiles.a)
+       -rm -f libxfiles.a
+       $(AR) r libxfiles.a $(OBJS_libxfiles.a)
+       $(RANLIB) libxfiles.a
+
+libdumpscan.a: $(OBJS_libdumpscan.a)
+       -rm -f libdumpscan.a
+       $(AR) r libdumpscan.a $(OBJS_libdumpscan.a)
+       $(RANLIB) libdumpscan.a
+
+xf_errs.c xf_errs.h: xf_errs.et
+       $(COMPILE_ET) xf_errs.et
+
+dumpscan_errs.c dumpscan_errs.h: dumpscan_errs.et
+       $(COMPILE_ET) dumpscan_errs.et
+
+util.o xfiles.o xf_files.o: xf_errs.h
+backuphdr.o directory.o parsedump.o parsetag.o: dumpscan_errs.h
+parsevnode.o parsevol.o pathname.o stagehdr.o:  dumpscan_errs.h
+util.o:                                         dumpscan_errs.h
+
+# repair addresses the same storage as two different types of structs at the
+# same time.
+CFLAGS_repair.o = @CFLAGS_NOSTRICT@
+repair.o: repair.c dumpscan_errs.h
+
+${TOP_LIBDIR}/libxfiles.a: libxfiles.a
+       ${INSTALL_DATA} $? $@
+
+${TOP_LIBDIR}/libdumpscan.a: libdumpscan.a
+       ${INSTALL_DATA} $? $@
+
+dest:
+
+install:
+
+uninstall:
+
+clean:
+       -rm -f xf_errs.c xf_errs.h dumpscan_errs.c dumpscan_errs.h *.o \
+       $(TARGETS)
+
+include ../../config/Makefile.version
+
+.PHONY:                all install clean realclean distclean mostlyclean install uninstall
similarity index 100%
rename from src/tools/dump.c
rename to src/tools/dumpscan/dump.c
similarity index 100%
rename from src/tools/int64.c
rename to src/tools/dumpscan/int64.c
similarity index 100%
rename from src/tools/intNN.h
rename to src/tools/dumpscan/intNN.h
similarity index 100%
rename from src/tools/util.c
rename to src/tools/dumpscan/util.c