Commit 4d7c374a authored by Axel Beckert's avatar Axel Beckert

Imported Upstream version 0.5

parent ed3b33d9
Installation Instructions
-------------------------
To build the executable type:
make
To copy the executable and manual page, become root and type:
make install
The default locations are:
/usr/local/bin/since
/usr/local/man/man1/since.1
README
\ No newline at end of file
###########################################################################
# Files ###################################################################
NAME = since
VERSION = 0.3
SRC = $(NAME).c
OBJ = $(NAME).o
TARGET = $(NAME)
MAN = $(NAME).1
ARCHIVE = $(NAME)-$(VERSION).tar.gz
LSM = $(NAME)-$(VERSION).lsm
INTARGET = /usr/local/bin/$(TARGET)
INMAN = /usr/local/man/man1/$(MAN)
###########################################################################
# Compiler and Flags ######################################################
# Files
SRC = since.c
OBJ = since.o
TARGET = since
MAN = since.1
BINDIR = /usr/local/bin
MANDIR = /usr/local/man/man1
# Compiler and Flags
CC = gcc
CFLAGS = -Wall -O2 -fomit-frame-pointer -DVERSION=\"$(VERSION)\"
STRIP = strip
#CFLAGS += -DTRACE
#CFLAGS += -g
#CFLAGS += -pg
###########################################################################
# Auxillary Programs ######################################################
CFLAGS = -Wall -O2
RM = rm -f
INSTALL = install -c
LINK = ln -s
TOUCH = touch
TAR = tar
MKLSM = ./mklsm
###########################################################################
# Generic build all #######################################################
# Generic build all
all : $(TARGET)
###########################################################################
# Install #################################################################
# Install
install : $(TARGET)
$(INSTALL) -m 0755 $(TARGET) $(INTARGET)
$(INSTALL) -m 0644 $(MAN) $(INMAN)
###########################################################################
# Build since executable ##################################################
$(INSTALL) -m 0755 $(TARGET) $(BINDIR)
$(INSTALL) -m 0644 $(MAN) $(MANDIR)
# Build since executable
$(TARGET) : $(OBJ)
$(CC) $(CFLAGS) $(OBJ) -o $(TARGET)
$(STRIP) $(TARGET)
###########################################################################
# Build object files from source ##########################################
# Build object files from source
.c.o :
$(CC) $(CFLAGS) -c $*.c
###########################################################################
# Generate a package ready for distribution ###############################
package :
$(TOUCH) $(SRC)
$(RM) $(NAME)-$(VERSION)
$(LINK) . $(NAME)-$(VERSION)
$(TAR) czvf $(ARCHIVE) $(NAME)-$(VERSION)/{$(SRC),$(MAN),$(TARGET),Makefile,README,INSTALL,COPYING}
$(MKLSM) $(NAME) $(VERSION)
###########################################################################
# Remove intermediate files ###############################################
# Remove junk
clean :
$(RM) *.o core $(NAME)-$(VERSION)
$(RM) *.o core *~
reallyclean : clean
$(RM) $(TARGET) $(ARCHIVE)
$(RM) $(TARGET)
since
Since
-----
Read INSTALL for installation instructions.
since is a tail(1) with state - it allows the user to
view only the lines appended to a log file since the last
since is a tail(1) with state - it allows the user to
view only the lines appended to a log file since the last
time since was used.
Installation Instructions
-------------------------
To build the executable type:
make
To copy the executable and manual page, become root and type:
make install
The default locations are:
/usr/local/bin/since
/usr/local/man/man1/since.1
Use
---
To understand how it works run the commands:
make
echo "First line" >> testlogfile
./since testlogfile
echo "Second line" >> testlogfile
./since testlogfile
rm testlogfile
make
echo "First line" >> testlogfile
./since testlogfile
echo "Second line" >> testlogfile
./since testlogfile
rm testlogfile
You might want to set up the following alias:
alias dosince='since /var/log/messages /var/log/xferlog'
alias dosince='since /var/log/messages /var/log/xferlog'
since is released under the terms of the GNU public
Since is released under the terms of the GNU public
license. Click accept now... errr... sorry... just
look at COPYING.
File deleted
.\" Process this file with
.\" groff -man -Tascii since.1
.\"
.TH SINCE 1 "JULY 1998" Linux "User Manuals"
.SH NAME
since \- display content of a file since the last time
.SH SYNOPSIS
.B since [-hnv]
.B since [-hnqvx]
.I files
.SH DESCRIPTION
.B since
......@@ -21,10 +18,12 @@ has not been run before the entire
file is displayed.
.B since
is useful for watching over log files.
.SH EXAMPLE USAGE
.B since -v /var/log/xferlog | less
(type the command, then ftp something from localhost,
then type the command again).
.SH EXAMPLE
.B since /var/log/apache/{access,error}_log > /dev/null
.br
.B lynx --dump http://localhost/ > /dev/null
.br
.B since /var/log/apache/{access,error}_log
.SH OPTIONS
.IP -h
Print a terse help message.
......@@ -32,8 +31,12 @@ Print a terse help message.
Do not update the
.I .since
file which keeps track of file growth.
.IP -q
Decrease the verbosity of the output.
.IP -v
Increase the verbosity of the output.
.IP -x
Exclude files with compressed extensions.
.SH FILES
.I .since
.RS
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment