From 1bba98e471ed8fb06b2dff13e17a5c6045b330d1 Mon Sep 17 00:00:00 2001 From: Thomas Orozco Date: Sun, 22 Feb 2015 21:20:25 -0800 Subject: [PATCH] Rename to a name that isn't already taken --- .gitignore | 4 ++-- Makefile | 16 ++++++++-------- config.mk | 1 - sinit.c => tini.c | 1 + 4 files changed, 11 insertions(+), 11 deletions(-) rename sinit.c => tini.c (99%) diff --git a/.gitignore b/.gitignore index ccc4718..045f294 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -sinit.o -sinit +tini.o +tini diff --git a/Makefile b/Makefile index 01729c3..ffdedf6 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ include config.mk -OBJ = sinit.o -BIN = sinit +OBJ = tini.o +BIN = tini all: $(BIN) @@ -18,14 +18,14 @@ uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) dist: clean - mkdir -p sinit-$(VERSION) - cp LICENSE Makefile README config.def.h config.mk sinit.c sinit-$(VERSION) - tar -cf sinit-$(VERSION).tar sinit-$(VERSION) - gzip sinit-$(VERSION).tar - rm -rf sinit-$(VERSION) + mkdir -p tini-$(VERSION) + cp LICENSE Makefile README config.def.h config.mk tini.c tini-$(VERSION) + tar -cf tini-$(VERSION).tar tini-$(VERSION) + gzip tini-$(VERSION).tar + rm -rf tini-$(VERSION) clean: - rm -f $(BIN) $(OBJ) sinit-$(VERSION).tar.gz + rm -f $(BIN) $(OBJ) tini-$(VERSION).tar.gz .PHONY: all install uninstall dist clean diff --git a/config.mk b/config.mk index 92980c2..f7495aa 100644 --- a/config.mk +++ b/config.mk @@ -1,4 +1,3 @@ -# sinit version VERSION = 0.1.0 # paths diff --git a/sinit.c b/tini.c similarity index 99% rename from sinit.c rename to tini.c index 9e4cf12..4979258 100644 --- a/sinit.c +++ b/tini.c @@ -72,6 +72,7 @@ int main(int argc, char *argv[]) { child_args[i] = NULL; if (i == 0) { + // User forgot to provide args! print_usage_and_exit(name, stdout, 1); }