This commit is contained in:
2025-11-05 20:23:26 -05:00
parent a977f0afbe
commit 600996c832
3 changed files with 59 additions and 286 deletions

View File

@@ -1,7 +1,7 @@
// SPDX-License-Identifer: BSD-3-Clause
/*
* A uemacs derided and inspired layout and format for smaller projects;
* such as, a small library, or CLI.
* such as, a small test, or CLI.
*/
#include <lib/fs.h>
#include <lib/say.h>
@@ -14,7 +14,7 @@ int generate_flat(char *package, char *author, int year, char *license,
{
char *main;
asprintf(&main, "%s.c", package);
fs_write("Makefile", "%s", package);
fs_write("Makefile", templ_FLAT_MAKEFILE, package);
fs_write(main, "%s", license);
fs_write("version.h", "\
#ifndef VERSION_H_\n\
@@ -36,7 +36,7 @@ void version();\n\
\n\
void version()\n\
{\n\
printf(\"%s version %s\\n\", PROGRAM_NAME_LONG, VERSION);\n\
printf(\"%%s version %%s\\n\", PROGRAM_NAME_LONG, VERSION);\n\
}");
return 0;
}