ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit ae7aafc127d8439fad3250afe7b6f28d44690d39
parent d81c43ee3fd2112893f3d7634929f7d8cea4141d
Author: sin <sin@2f30.org>
Date:   Sat, 29 Nov 2014 21:44:07 +0000

Rename util/ to libutil/

Diffstat:
MMakefile | 46+++++++++++++++++++++++-----------------------
Rutil/agetcwd.c -> libutil/agetcwd.c | 0
Rutil/agetline.c -> libutil/agetline.c | 0
Rutil/apathmax.c -> libutil/apathmax.c | 0
Rutil/concat.c -> libutil/concat.c | 0
Rutil/ealloc.c -> libutil/ealloc.c | 0
Rutil/eprintf.c -> libutil/eprintf.c | 0
Rutil/estrtol.c -> libutil/estrtol.c | 0
Rutil/estrtoul.c -> libutil/estrtoul.c | 0
Rutil/explicit_bzero.c -> libutil/explicit_bzero.c | 0
Rutil/passwd.c -> libutil/passwd.c | 0
Rutil/proc.c -> libutil/proc.c | 0
Rutil/putword.c -> libutil/putword.c | 0
Rutil/recurse.c -> libutil/recurse.c | 0
Rutil/strlcat.c -> libutil/strlcat.c | 0
Rutil/strlcpy.c -> libutil/strlcpy.c | 0
Rutil/tty.c -> libutil/tty.c | 0
17 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/Makefile b/Makefile @@ -15,22 +15,22 @@ HDR = \ util.h LIB = \ - util/agetcwd.o \ - util/agetline.o \ - util/apathmax.o \ - util/concat.o \ - util/ealloc.o \ - util/eprintf.o \ - util/estrtol.o \ - util/estrtoul.o \ - util/explicit_bzero.o \ - util/passwd.o \ - util/proc.o \ - util/putword.o \ - util/recurse.o \ - util/strlcat.o \ - util/strlcpy.o \ - util/tty.o + libutil/agetcwd.o \ + libutil/agetline.o \ + libutil/apathmax.o \ + libutil/concat.o \ + libutil/ealloc.o \ + libutil/eprintf.o \ + libutil/estrtol.o \ + libutil/estrtoul.o \ + libutil/explicit_bzero.o \ + libutil/passwd.o \ + libutil/proc.o \ + libutil/putword.o \ + libutil/recurse.o \ + libutil/strlcat.o \ + libutil/strlcpy.o \ + libutil/tty.o SRC = \ last.c \ @@ -144,7 +144,7 @@ options: @echo "LDFLAGS = $(LDFLAGS)" @echo "CC = $(CC)" -binlib: util.a +binlib: libutil.a $(MAKE) bin bin: $(BIN) @@ -157,13 +157,13 @@ config.h: .o: @echo LD $@ - @$(LD) -o $@ $< util.a $(LDFLAGS) + @$(LD) -o $@ $< libutil.a $(LDFLAGS) .c.o: @echo CC $< @$(CC) -c -o $@ $< $(CFLAGS) -util.a: $(LIB) +libutil.a: $(LIB) @echo AR $@ @$(AR) -r -c $@ $? @ranlib $@ @@ -194,12 +194,12 @@ uninstall: dist: clean @echo creating dist tarball @mkdir -p ubase-$(VERSION) - @cp -r LICENSE Makefile config.mk TODO $(SRC) $(MAN) util $(HDR) ubase-$(VERSION) + @cp -r LICENSE Makefile config.mk TODO $(SRC) $(MAN) libutil $(HDR) ubase-$(VERSION) @tar -cf ubase-$(VERSION).tar ubase-$(VERSION) @gzip ubase-$(VERSION).tar @rm -rf ubase-$(VERSION) -ubase-box: config.h $(SRC) util.a +ubase-box: config.h $(SRC) libutil.a @echo creating box binary @mkdir -p build @cp $(HDR) build @@ -217,9 +217,9 @@ ubase-box: config.h $(SRC) util.a @for f in $(SRC); do echo "printf(\"`basename $$f .c`\"); putchar(' ');" >> build/$@.c; done @echo "putchar(0xa); }; return 0; }" >> build/$@.c @echo LD $@ - @$(LD) -o $@ build/*.c util.a $(CFLAGS) $(LDFLAGS) + @$(LD) -o $@ build/*.c libutil.a $(CFLAGS) $(LDFLAGS) @rm -r build clean: @echo cleaning - @rm -f $(BIN) $(OBJ) $(LIB) util.a ubase-box + @rm -f $(BIN) $(OBJ) $(LIB) libutil.a ubase-box diff --git a/util/agetcwd.c b/libutil/agetcwd.c diff --git a/util/agetline.c b/libutil/agetline.c diff --git a/util/apathmax.c b/libutil/apathmax.c diff --git a/util/concat.c b/libutil/concat.c diff --git a/util/ealloc.c b/libutil/ealloc.c diff --git a/util/eprintf.c b/libutil/eprintf.c diff --git a/util/estrtol.c b/libutil/estrtol.c diff --git a/util/estrtoul.c b/libutil/estrtoul.c diff --git a/util/explicit_bzero.c b/libutil/explicit_bzero.c diff --git a/util/passwd.c b/libutil/passwd.c diff --git a/util/proc.c b/libutil/proc.c diff --git a/util/putword.c b/libutil/putword.c diff --git a/util/recurse.c b/libutil/recurse.c diff --git a/util/strlcat.c b/libutil/strlcat.c diff --git a/util/strlcpy.c b/libutil/strlcpy.c diff --git a/util/tty.c b/libutil/tty.c