From 15cfc3dcd9194fcca7715049eb1f49be2aa6d92f Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 3 Jan 2013 00:17:05 -0800 Subject: Add -v flag to print version info Signed-off-by: Alan Coopersmith --- bdftopcf.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bdftopcf.c') diff --git a/bdftopcf.c b/bdftopcf.c index e8f5954..f3bd6ee 100644 --- a/bdftopcf.c +++ b/bdftopcf.c @@ -26,6 +26,10 @@ from The Open Group. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include #include @@ -129,6 +133,11 @@ main(int argc, char *argv[]) output_name = argv[0]; } break; + + case 'v': + printf("%s\n", PACKAGE_STRING); + exit(0); + default: goto usage; } -- cgit v1.2.3