summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-10-06 16:50:25 -0400
committerJakob Kaivo <jkk@ung.org>2020-10-06 16:50:25 -0400
commit2c55c7f99803bbb7fd490ba96bec7a4a24f68fe6 (patch)
tree19afbbd22d645f1c1f687461e5d38a0ff87363c8
parent83d569d4abda4e925581d433c5d8127e29358579 (diff)
split true into its own (trivial) repo
-rw-r--r--.gitignore1
-rw-r--r--.gitmodules3
-rw-r--r--Makefile2
m---------true0
-rw-r--r--true.c7
5 files changed, 6 insertions, 7 deletions
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
+Subproject 5970d06b2c1bdc9da65d890ab9e5f95aaae1152
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"