From 2c55c7f99803bbb7fd490ba96bec7a4a24f68fe6 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 6 Oct 2020 16:50:25 -0400 Subject: split true into its own (trivial) repo --- .gitignore | 1 - .gitmodules | 3 +++ Makefile | 2 +- true | 1 + true.c | 7 ++----- 5 files changed, 7 insertions(+), 7 deletions(-) create mode 160000 true diff --git a/.gitignore b/.gitignore index e0b05b5..3480f40 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,6 @@ newgrp pwd read sh -true ulimit umask unalias diff --git a/.gitmodules b/.gitmodules index 425c331..9fad81f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -5,3 +5,6 @@ [submodule "false"] path = false url = ../false/ +[submodule "true"] + path = true + url = ../true/ diff --git a/Makefile b/Makefile index c711c60..e2714c2 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ OBJECTS=alias.o bg.o builtins.o cd.o command.o false.o fc.o fg.o getopts.o \ interactive.o parse.o init.o getopt.o \ sh.tab.o sh.yy.o BUILTINS=alias bg cd command fc fg getopts jobs newgrp pwd read \ - true ulimit umask unalias wait + ulimit umask unalias wait all: $(UTILITY) $(L10N) $(BUILTINS) diff --git a/true b/true new file mode 160000 index 0000000..5970d06 --- /dev/null +++ b/true @@ -0,0 +1 @@ +Subproject commit 5970d06b2c1bdc9da65d890ab9e5f95aaae11521 diff --git a/true.c b/true.c index c3c9e8c..cf7b585 100644 --- a/true.c +++ b/true.c @@ -17,8 +17,5 @@ * */ -int true_main(int argc, char *argv[]) -{ - (void)argc; (void)argv; - return 0; -} +#define main true_main +#include "true/true.c" -- cgit v1.2.1