diff --git a/argued/Makefile b/argued/Makefile new file mode 100644 index 0000000..4281460 --- /dev/null +++ b/argued/Makefile @@ -0,0 +1,12 @@ +RM = rm -f +TARGETS = argued + +all: $(TARGETS) + +%: %.c + $(CC) -o $@ $@.c + +clean: + $(RM) $(TARGETS) + +.PHONY: all clean diff --git a/argued/argued.1 b/argued/argued.1 new file mode 100644 index 0000000..c365df8 --- /dev/null +++ b/argued/argued.1 @@ -0,0 +1,18 @@ +.TH ARGUED 1 + +.SH NAME + +argued \(en check for arguments + +.SH DESCRIPTION + +Argued exits successfully if any arguments are provided, and unsuccessfully otherwise. + +.SH STANDARDS + +Argued is not described in POSIX.1-2017. +Argued's function may be performed on a purely POSIX system with test(1). + +.SH COPYRIGHT + +Public domain. diff --git a/nonzero/nonzero.c b/argued/argued.c similarity index 100% rename from nonzero/nonzero.c rename to argued/argued.c diff --git a/dist/Makefile b/dist/Makefile index 03f9ff0..595daa4 100644 --- a/dist/Makefile +++ b/dist/Makefile @@ -6,6 +6,13 @@ bin: share/man/man1: mkdir -p share/man/man1 +.PHONY: argued +argued: bin/argued +bin/argued: bin ../argued/argued + cp ../argued/argued bin/ +../argued/argued: + $(MAKE) -C ../argued + .PHONY: bitch bitch: bin/bitch bin/bitch: bin ../bitch/bitch @@ -51,13 +58,6 @@ bin/pscat: bin ../pscat/pscat ../pscat/pscat: $(MAKE) -C ../pscat sane -.PHONY: nonzero -nonzero: bin/nonzero -bin/nonzero: bin ../nonzero/nonzero - cp ../nonzero/nonzero bin/nonzero -../nonzero/nonzero: - $(MAKE) -C ../nonzero sane - .PHONY: simexec simexec: bin/simexec bin/simexec: bin ../simexec/simexec diff --git a/nonzero/Makefile b/nonzero/Makefile deleted file mode 100644 index 26d2148..0000000 --- a/nonzero/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -all: nonzero - -clean: - rm -rf ../dist/nonzero ../dist/nonzero.tar ../dist/nonzero.tar.gz nonzero - -dist: ../dist/nonzero.tar.gz - -sane: nonzero - -nonzero: nonzero.c - $(CC) -o nonzero nonzero.c - -../dist/nonzero: nonzero - mkdir -p ../dist/nonzero.tmp/bin/ ../dist/nonzero.tmp/share/man/man1/ - cp nonzero ../dist/nonzero.tmp/bin/nonzero - cp nonzero.1 ../dist/nonzero.tmp/share/man/man1/nonzero.1 - mv ../dist/nonzero.tmp ../dist/nonzero - -../dist/nonzero.tar: ../dist/nonzero - cd ../dist/nonzero && pax -w -x ustar . >../nonzero.tar.tmp - mv ../dist/nonzero.tar.tmp ../dist/nonzero.tar - -../dist/nonzero.tar.gz: ../dist/nonzero.tar - gzip -c <../dist/nonzero.tar >../dist/nonzero.tar.gz.tmp - mv ../dist/nonzero.tar.gz.tmp ../dist/nonzero.tar.gz - -.PHONY: all clean sane diff --git a/nonzero/nonzero.1 b/nonzero/nonzero.1 deleted file mode 100644 index 396392b..0000000 --- a/nonzero/nonzero.1 +++ /dev/null @@ -1,18 +0,0 @@ -.TH NONZERO 1 - -.SH NAME - -nonzero \(en check for arguments - -.SH DESCRIPTION - -Nonzero exits successfully if any arguments are provided, and unsuccessfully otherwise. - -.SH STANDARDS - -Nonzero is not described in POSIX.1-2017. -Nonzero's function may be performed on a purely POSIX system with test(1). - -.SH COPYRIGHT - -Public domain.