summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-02-05 09:17:39 +1100
committerNeil Brown <neilb@suse.de>2007-02-05 09:17:39 +1100
commit784a4fd163c34e654f54ea15aa96a00900d62630 (patch)
tree2d5282735f9fa756084e74589b2050a0c4f927e8 /tools
parentb5a542ab44c4d3430cf68dcacc60f06a204b15cd (diff)
downloadnfs-utils-784a4fd163c34e654f54ea15aa96a00900d62630.tar.gz
nfs-utils-784a4fd163c34e654f54ea15aa96a00900d62630.tar.xz
nfs-utils-784a4fd163c34e654f54ea15aa96a00900d62630.zip
Remove getkversion
This is not used, does not seem useful, and causes compile problems on some distgributions.
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am2
-rw-r--r--tools/getkversion/Makefile.am12
-rw-r--r--tools/getkversion/getkversion.c19
3 files changed, 1 insertions, 32 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index c4c9875..515da13 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -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
index 4f89892..0000000
--- a/tools/getkversion/Makefile.am
+++ /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
index abe1705..0000000
--- a/tools/getkversion/getkversion.c
+++ /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;
-}