Compare commits

...

2 Commits

Author SHA1 Message Date
joeac 489e41256f http/Makefile builds pp.1 manpage 2026-06-22 17:09:15 +01:00
joeac d3dcf3d741 don't track pp.1 2026-06-22 17:08:29 +01:00
3 changed files with 3 additions and 48 deletions
+2 -2
View File
@@ -74,8 +74,8 @@ endef
all: bin/pp prune $(blogs) public out
bin/pp:
cd pp && $(MAKE) && cp pp ../bin/pp
bin/pp share/man/man1/pp.1:
cd pp && $(MAKE) && cp pp ../bin/pp && cp pp.1 ../share/man/man1/pp.1
.PHONY: out
out: $(out_deps)
+1
View File
@@ -1,2 +1,3 @@
pp
*.o
*.1
-46
View File
@@ -1,46 +0,0 @@
.Dd Apr 25, 2019
.Dt pp 1
.Os
.Sh NAME
.Nm pp
.Nd preprocessor
.Sh SYNOPSIS
.Nm pp
.Op Fl d
.Ar file
.Op args ...
.Sh DESCRIPTION
The
.Nm
utility processes
.Ar file
to produce output that is used as input to another
program.
.Pp
It executes code enclosed in
.Dq #!\en
delimiters using
.Xr sh 1 .
.Op args ...
are passed to the embbeded script and are available
via the usual
.Em $1, $2, ...
positional parameters.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl d
.Nm
will dump the generated
.Xr sh 1
code instead of executing it. This is useful for debugging.
.El
.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
Preprocess file with arguments:
.Pp
.Dl $ pp file.upphtml a b
.Pp
.Sh SEE ALSO
.Xr sh 1