save
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user