From c9b99bacd2275b6feb7e10750752b5d2cdd57ede Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 12 Mar 2025 08:48:04 +0800 Subject: [PATCH] Rename template -> chtmpl --- Makefile | 6 +++--- template.1 => chtmpl.1 | 6 +++--- template.7 => chtmpl.7 | 6 +++--- template.c => chtmpl.c | 0 diff --git a/Makefile b/Makefile index 15ec6a975040051690f332011af760ba9465f33b..8d661aa6d09d145382b425eef9e7a9a8dfd5d2fe 100644 --- a/Makefile +++ b/Makefile @@ -8,15 +8,15 @@ TARGET = chtmpl PREFIX ?= /usr/local -SRCS = template.c parse.y -OBJS = template.o parse.o +SRCS = chtmpl.c parse.y +OBJS = chtmpl.o parse.o all: $(TARGET) parse.c parse.h: parse.y $(YACC) $(YFLAGS) -o parse.c $< -template.o: template.c parse.h +chtmpl.o: chtmpl.c parse.h $(CC) $(CFLAGS) -c -o $@ $< parse.o: parse.c diff --git a/template.1 b/chtmpl.1 rename from template.1 rename to chtmpl.1 index 7fedd72e9e4ad82be4b969ab099a0cb4ebdde049..3b334a2ccfbf54118a767b2863bd7d3d031f45ab 100644 --- a/template.1 +++ b/chtmpl.1 @@ -16,7 +16,7 @@ .Dd January 6, 2022 .Dt TEMPLATE 1 .Os .Sh NAME -.Nm template +.Nm chtmpl .Nd templating system compiler .Sh SYNOPSIS .Nm @@ -26,7 +26,7 @@ .Op Ar .Sh DESCRIPTION .Nm is an utility that converts files written in the -.Xr template 7 +.Xr chtmpl 7 format format to a set of routine writtens in the C programming language. .Nm @@ -50,7 +50,7 @@ .El .Sh EXIT STATUS .Ex -std .Sh SEE ALSO -.Xr template 7 +.Xr chtmpl 7 .Sh AUTHORS .An -nosplit The diff --git a/template.7 b/chtmpl.7 rename from template.7 rename to chtmpl.7 index cfbb3973bf63eea0c29ae560c37fcdb4322207c0..655b2122eb214f1764a724d933f36ce0b601dd4b 100644 --- a/template.7 +++ b/chtmpl.7 @@ -16,7 +16,7 @@ .Dd January 6, 2022 .Dt TEMPLATE 7 .Os .Sh NAME -.Nm template +.Nm chtmpl .Nd templating language .Sh DESCRIPTION .Nm @@ -26,7 +26,7 @@ .Dq templates . A .Nm file is assumed to be compiled using the -.Xr template 1 +.Xr chtmpl 1 utility into C code, to be further compiled as part of a bigger application. The language itself is format-agnostic and can thus be used to produce @@ -118,7 +118,7 @@ .Ar expression with the default escaping. .El .Sh SEE ALSO -.Xr template 1 +.Xr chtmpl 1 .Sh AUTHORS .An -nosplit The diff --git a/template.c b/chtmpl.c rename from template.c rename to chtmpl.c -- 2.48.1