From 94a2fe0c17cac00c679cd08f9d8c3f6e78fa09a4 Mon Sep 17 00:00:00 2001 From: Dhole Date: Wed, 24 Jun 2015 17:46:28 +0200 Subject: mangen: Set build date externally Patch build system to allow the build date in the man entry to be set externally. In Debian it will be set to the latest debian/changelog entry for reproducibility. --- src/mangen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mangen.c') diff --git a/src/mangen.c b/src/mangen.c index d2bf89a..6f5a2fa 100644 --- a/src/mangen.c +++ b/src/mangen.c @@ -25,6 +25,10 @@ #define INFO NAME " \\- Open Free Fiasco Firmware Flasher, version " VERSION #define DESCRIPTION "0xFFFF is Open Free Fiasco Firmware Flasher for Maemo devices. It support generating and unpacking FIASCO images on local computer. Useful for editing Maemo firmware package for future flash. It support via USB flashing any image type to Maemo device and also \"cold\" flashing which means flashing dead device with erased bootloader. There is support for booting kernel via USB without flashing to NAND and also changing configuration of Maemo device (enable/disable R&D mode, changing HW revision strings, ...).\n\n0xFFFF is alternative tool to proprietary Nokia flasher-3.5 and fiasco-gen. 0xFFFF generate compatible FIASCO images and also accept FIASCO images generated by Nokia fiasco-gen." +#ifndef BUILD_DATE +#define BUILD_DATE __DATE__ +#endif + int main() { FILE * pipe; @@ -34,7 +38,7 @@ int main() { if ( ! pipe ) return 1; - puts(".TH " NAME " 1 \"" __DATE__ "\" \"" NAME " " VERSION "\""); + puts(".TH " NAME " 1 \"" BUILD_DATE "\" \"" NAME " " VERSION "\""); puts(""); puts(".SH NAME"); -- cgit v1.2.3