mirror of https://github.com/krallin/tini.git
Rename to a name that isn't already taken
This commit is contained in:
parent
0b97a195f9
commit
1bba98e471
|
@ -1,2 +1,2 @@
|
|||
sinit.o
|
||||
sinit
|
||||
tini.o
|
||||
tini
|
||||
|
|
16
Makefile
16
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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue