summaryrefslogtreecommitdiffstats
path: root/text-utils
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:25:33 +0100
committerKarel Zak2006-12-07 00:25:33 +0100
commit726f69e29ca9d4842f3acb20fffd2466fda62c09 (patch)
treeabbc1b6e9bfb0dfe32e81a83648e261ccb2d5a5f /text-utils
parentImported from util-linux-2.2 tarball. (diff)
downloadkernel-qcow2-util-linux-726f69e29ca9d4842f3acb20fffd2466fda62c09.tar.gz
kernel-qcow2-util-linux-726f69e29ca9d4842f3acb20fffd2466fda62c09.tar.xz
kernel-qcow2-util-linux-726f69e29ca9d4842f3acb20fffd2466fda62c09.zip
Imported from util-linux-2.5 tarball.
Diffstat (limited to 'text-utils')
-rw-r--r--text-utils/Makefile15
-rw-r--r--text-utils/rev.12
-rw-r--r--text-utils/rev.c4
3 files changed, 9 insertions, 12 deletions
diff --git a/text-utils/Makefile b/text-utils/Makefile
index 40e8d118e..834531d29 100644
--- a/text-utils/Makefile
+++ b/text-utils/Makefile
@@ -1,6 +1,6 @@
# Makefile -- Makefile for util-linux Linux utilities
# Created: Sat Dec 26 20:09:40 1992
-# Revised: Sun Feb 26 16:55:46 1995 by faith@cs.unc.edu
+# Revised: Sat Jun 3 14:11:08 1995 by r.faith@ieee.org
# Copyright 1992, 1993, 1994, 1995 Rickard E. Faith (faith@cs.unc.edu)
#
@@ -36,9 +36,6 @@ NEEDS_TERMCAP= more ul
all: $(BIN) $(USRBIN)
-%.o: %.c
- $(CC) -c $(CFLAGS) $< -o $@
-
$(NEEDS_TERMCAP):
$(CC) $(LDFLAGS) $^ -o $@ -ltermcap
@@ -66,11 +63,11 @@ strings: strings.o $(BSD)/getopt.o
ul: ul.o
install install.shadow install.text-utils: all
- install -d -m 755 /bin /usr/bin /usr/lib /usr/man/man1
- install -m 755 $(BIN) /bin
- install -m 755 $(USRBIN) /usr/bin
- install -m 644 $(USRLIB) /usr/lib
- install -m 644 $(MAN1) /usr/man/man1
+ $(INSTALLDIR) $(BINDIR) $(USRBINDIR) $(USRLIBDIR) $(MAN1DIR)
+ $(INSTALLBIN) $(BIN) $(BINDIR)
+ $(INSTALLBIN) $(USRBIN) $(USRBINDIR)
+ $(INSTALLDAT) $(USRLIB) $(USRLIBDIR)
+ $(INSTALLMAN) $(MAN1) $(MAN1DIR)
.PHONY: clean distclean
clean:
diff --git a/text-utils/rev.1 b/text-utils/rev.1
index 5503a94a8..8f66b7310 100644
--- a/text-utils/rev.1
+++ b/text-utils/rev.1
@@ -32,7 +32,7 @@
.\" from: @(#)rev.1 6.3 (Berkeley) 3/21/92
.\" Modified for Linux by Charles Hannum (mycroft@gnu.ai.mit.edu)
.\" and Brian Koehmstedt (bpk@gnu.ai.mit.edu)
-.\" rev.1,v 1.1.1.1 1995/02/22 19:09:19 faith Exp
+.\" $Id: rev.1,v 1.2 1995/03/12 01:33:24 faith Exp $
.\"
.Dd March 21, 1992
.Dt REV 1
diff --git a/text-utils/rev.c b/text-utils/rev.c
index 9fd22e0f3..1cede0bc3 100644
--- a/text-utils/rev.c
+++ b/text-utils/rev.c
@@ -45,7 +45,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)rev.c 5.2 (Berkeley) 3/21/92";*/
-static char rcsid[] = "rev.c,v 1.1.1.1 1995/02/22 19:09:19 faith Exp";
+static char rcsid[] = "$Id: rev.c,v 1.3 1995/10/07 01:32:14 faith Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -110,7 +110,7 @@ main(argc, argv)
t = p + len - 1 - (*(p+len-1)=='\r'
|| *(p+len-1)=='\n');
for ( ; t >= p; --t)
- if(strcmp(t, '\0') != 0)
+ if(strcmp(t, "\0") != 0)
putchar(*t);
#endif /* linux */
putchar('\n');