This commit is contained in:
2025-11-04 21:14:47 -05:00
parent 45a305aec4
commit 116fb662c8
10 changed files with 134 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
Format_Index: p
Format_Index: p
# SPDX-License-Identifier: BSD-3-Clause
PACKAGE := %s

View File

@@ -1,4 +1,4 @@
Format_Index: a, p, p, d, y, a, a, p
Format_Index: a, p, p, d, y, p, a, p
This is the README file for the %s %s distribution.
%s %s

50
t/main.x Normal file
View File

@@ -0,0 +1,50 @@
Format_Index: l, y, a, d, a
// SPDX-License-Identifier: %s
/*
* Copyright (C) %d, %s.
* Written by YOU (you@example.com)
*/
#include <stdlib.h>
static int exit_status;
static void print_help();
static void print_version();
int main(int argc, char **argv)
{
exit_status = EXIT_SUCCESS;
return exit_status;
}
static void print_help()
{
printf("Usage: %%s [OPTION]...\n", PROGRAM);
fputs("\
%s.\n",
stdout);
puts("");
fputs("\
--help display this help and exit\n\
--version display version information and exit\n",
stdout);
/*
puts("");
fputs("\
--foo Enable the foo directive\n",
stdout);
*/
exit(exit_status);
}
static void print_version()
{
printf("%%s %%s %%d\n", prog_name, VERSION, COMMIT);
printf("Copyright (C) %%d %s.\n", YEAR);
puts("This is free software: you are free to change and redistribute it.");
puts("There is NO WARRANTY, to the extent permitted by law.");
exit(exit_status);
}