Remove getkversion
authorNeil Brown <neilb@suse.de>
Sun, 4 Feb 2007 22:17:39 +0000 (09:17 +1100)
committerNeil Brown <neilb@suse.de>
Sun, 4 Feb 2007 22:17:39 +0000 (09:17 +1100)
This is not used, does not seem useful, and causes compile
problems on some distgributions.

.gitignore
configure.in
tools/Makefile.am
tools/getkversion/Makefile.am [deleted file]
tools/getkversion/getkversion.c [deleted file]

index dc39895..a5cf8ce 100644 (file)
@@ -46,7 +46,6 @@ utils/showmount/showmount
 utils/statd/statd
 tools/locktest/testlk
 tools/getiversion/getiversion
-tools/getkversion/getkversion
 support/export/mount.h
 support/export/mount_clnt.c
 support/export/mount_xdr.c
index 7cec002..757ebb8 100644 (file)
@@ -319,7 +319,6 @@ AC_CONFIG_FILES([
        support/nfs/Makefile
        tools/Makefile
        tools/getiversion/Makefile
-       tools/getkversion/Makefile
        tools/locktest/Makefile
        tools/nlmtest/Makefile
        tools/rpcdebug/Makefile
index c4c9875..515da13 100644 (file)
@@ -1,5 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-SUBDIRS = getiversion getkversion locktest rpcdebug rpcgen nlmtest
+SUBDIRS = getiversion locktest rpcdebug rpcgen nlmtest
 
 MAINTAINERCLEANFILES = Makefile.in
diff --git a/tools/getkversion/Makefile.am b/tools/getkversion/Makefile.am
deleted file mode 100644 (file)
index 4f89892..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-CC=$(CC_FOR_BUILD)
-LIBTOOL = @LIBTOOL@ --tag=CC
-
-noinst_PROGRAMS = getkversion
-getkversion_SOURCES = getkversion.c
-getkversion_CFLAGS=$(CFLAGS_FOR_BUILD)
-getkversion_CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
-getkversion_LDFLAGS=$(LDFLAGS_FOR_BUILD)
-
-MAINTAINERCLEANFILES = Makefile.in
diff --git a/tools/getkversion/getkversion.c b/tools/getkversion/getkversion.c
deleted file mode 100644 (file)
index abe1705..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Get version number of the kernel this was compiled for.
- * This is NOT the same as calling uname(), because we may be
- * running on a different kernel.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <linux/version.h>
-#include <stdio.h>
-
-int
-main(void)     /* This is for Dan Popp ;) */
-{
-       printf("%s\n", UTS_RELEASE);
-       return 0;
-}