Manpage translations in Makefiles

The translated manpage generation has moved from scripts to
Makefiles. This asists with conditional building as well, no
need to regenerate the German pgrep man page if both
the original pgrep.1 and man-po/de.po is not changed.

My Makefile-fu fails me on producing a cross-product or double
iteration for languages and man pages. Until that is solved
each man page is explicitly built. No big deal but it doesn't
look elegant in the Makefile. Languages will be picked
up automatically if they are found in man-po, man-po/top or
man-po/ps

The README describes the three-step process for translating
the files, incase I forget or someone else wants to update them.
This commit is contained in:
Craig Small
2014-06-28 23:38:13 +10:00
parent 889ad23842
commit 0f8f760307
9 changed files with 8850 additions and 28 deletions

View File

@ -9,6 +9,13 @@
#include "proc/readproc.h"
#include "nsutils.h"
#ifdef TEST_PROGRAM
const char *get_ns_name(int id)
{
return NULL;
}
#endif /* TEST_PROGRAM */
/* we need to fill in only namespace information */
int ns_read(pid_t pid, proc_t *ns_task)
{
@ -30,3 +37,11 @@ int ns_read(pid_t pid, proc_t *ns_task)
return rc;
}
#ifdef TEST_PROGRAM
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello, World!\n");
return EXIT_SUCCESS;
}
#endif /* TEST_PROGRAM */