summaryrefslogtreecommitdiff
path: root/bdftopcf.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-03 00:17:05 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-03 00:17:05 -0800
commit15cfc3dcd9194fcca7715049eb1f49be2aa6d92f (patch)
tree6f04e4b871163ca9195ebe86a27f09863e843148 /bdftopcf.c
parentb73e3de2d8a192d64f22fd2f450741cba2b7ee18 (diff)
Add -v flag to print version info
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'bdftopcf.c')
-rw-r--r--bdftopcf.c9
1 files changed, 9 insertions, 0 deletions
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 <X11/X.h>
#include <X11/Xproto.h>
#include <X11/fonts/fontmisc.h>
@@ -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;
}