Re: [dev] [ubase][PATCH] Add last and lastb

From: Dimitris Papastamos <sin_AT_2f30.org>
Date: Thu, 16 Oct 2014 10:31:02 +0100

On Thu, Oct 16, 2014 at 09:26:01AM +0000, k0ga_AT_shike2.com wrote:
> From: "Roberto E. Vargas Caballero" <k0ga_AT_shike2.com>
>
> ---
> Makefile | 6 +++++-
> config.def.h | 2 ++
> last.c | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 66 insertions(+), 1 deletion(-)
> create mode 100644 last.c

Thanks! One comment below.

> diff --git a/Makefile b/Makefile
> index 3989a77..07c2de0 100644
> --- a/Makefile
> +++ b/Makefile
> _AT_@ -33,6 +33,7 @@ LIB = \
> util/tty.o
>
> SRC = \
> + last.c \
> lastlog.c \
> chvt.c \
> clear.c \
> _AT_@ -131,7 +132,7 @@ MAN8 = \
> umount.8
>
> OBJ = $(SRC:.c=.o) $(LIB)
> -BIN = $(SRC:.c=)
> +BIN = $(SRC:.c=) lastb
>
> all: options binlib
>
> _AT_@ -165,6 +166,9 @@ util.a: $(LIB)
> _AT_$(AR) -r -c $@ $(LIB)
> _AT_ranlib $@
>
> +lastb: last
> + ln -f last lastb
> +

This will not quite work for the ubase-box target. Any ideas on
how to proceed?
Received on Thu Oct 16 2014 - 11:31:02 CEST

This archive was generated by hypermail 2.3.0 : Thu Oct 16 2014 - 11:36:18 CEST