Compare commits
2 commits
1e82124264
...
19806ab0b5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19806ab0b5 | ||
|
|
377bcb5642 |
2 changed files with 7 additions and 2 deletions
3
Makefile
3
Makefile
|
|
@ -18,5 +18,4 @@ clean:
|
||||||
rm -f *.o writeimg
|
rm -f *.o writeimg
|
||||||
|
|
||||||
install: writeimg
|
install: writeimg
|
||||||
install -c -s writeimg /usr/local/bin/writeimg
|
install -m 0755 writeimg /usr/local/bin/writeimg
|
||||||
install -m 0755 $(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,10 @@
|
||||||
#define VERSION "1.0.0"
|
#define VERSION "1.0.0"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef CR_YEAR
|
||||||
|
#define CR_YEAR "2026"
|
||||||
|
#endif
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
const char help[] =
|
const char help[] =
|
||||||
"Usage:\n"
|
"Usage:\n"
|
||||||
|
|
@ -124,7 +128,9 @@ static const struct option longopts[] = {
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
printf("%s version %s\n", basename(argv[0]), VERSION);
|
printf("%s version %s\n", basename(argv[0]), VERSION);
|
||||||
|
#ifdef BLDDATE
|
||||||
printf("Build date: %s\n", BLDDATE);
|
printf("Build date: %s\n", BLDDATE);
|
||||||
|
#endif
|
||||||
fprintf(stdout, copyright, CR_YEAR);
|
fprintf(stdout, copyright, CR_YEAR);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue