From 83d569d4abda4e925581d433c5d8127e29358579 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 6 Oct 2020 16:47:29 -0400 Subject: split false into its own (trivial) repo --- .gitignore | 1 - .gitmodules | 4 ++++ Makefile | 2 +- false | 1 + false.c | 9 +++------ 5 files changed, 9 insertions(+), 8 deletions(-) create mode 160000 false diff --git a/.gitignore b/.gitignore index dd0a122..e0b05b5 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ alias bg cd command -false fc fg getopts diff --git a/.gitmodules b/.gitmodules index 5e4c016..425c331 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,7 @@ [submodule "kill"] path = kill url = ../kill/ + +[submodule "false"] + path = false + url = ../false/ diff --git a/Makefile b/Makefile index 15f9aa0..c711c60 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ OBJECTS=alias.o bg.o builtins.o cd.o command.o false.o fc.o fg.o getopts.o \ unset.o \ interactive.o parse.o init.o getopt.o \ sh.tab.o sh.yy.o -BUILTINS=alias bg cd command false fc fg getopts jobs newgrp pwd read \ +BUILTINS=alias bg cd command fc fg getopts jobs newgrp pwd read \ true ulimit umask unalias wait all: $(UTILITY) $(L10N) $(BUILTINS) diff --git a/false b/false new file mode 160000 index 0000000..08e82e4 --- /dev/null +++ b/false @@ -0,0 +1 @@ +Subproject commit 08e82e432d1c35c1a45a36406d8e11461958bebb diff --git a/false.c b/false.c index 0997f7d..bc3528e 100644 --- a/false.c +++ b/false.c @@ -1,7 +1,7 @@ /* * UNG's Not GNU * - * Copyright (c) 2011-2017, Jakob Kaivo + * Copyright (c) 2011-2020, Jakob Kaivo * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -17,8 +17,5 @@ * */ -int false_main(int argc, char *argv[]) -{ - (void)argc; (void)argv; - return 1; -} +#define main false_main +#include "false/false.c" -- cgit v1.2.1