1
0

rename nonzero to argued

This commit is contained in:
dtb 2022-10-23 01:53:58 -04:00
parent 5e7fd5b6c9
commit 1f9786233d
6 changed files with 37 additions and 52 deletions

12
argued/Makefile Normal file
View File

@ -0,0 +1,12 @@
RM = rm -f
TARGETS = argued
all: $(TARGETS)
%: %.c
$(CC) -o $@ $@.c
clean:
$(RM) $(TARGETS)
.PHONY: all clean

18
argued/argued.1 Normal file
View File

@ -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.

14
dist/Makefile vendored
View File

@ -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

View File

@ -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

View File

@ -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.