]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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 dc39895dd99c7f4832fb3d56fe756c94a66eb607..a5cf8ce8653b88a3199d27ba608aef799800047c 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 7cec0020cb60b6085c84aafa780403c2206c1d13..757ebb80d07d95bd5711d42a80238f0929badf04 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 c4c987511154c324fac2b0a56d7ecd1579d622ed..515da1376e58042f761f0a0d247be3c56891d4d7 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;
-}