summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2007-06-01 12:21:44 -0700
committerGeoff Levand <geoffrey.levand@am.sony.com>2007-06-01 12:21:44 -0700
commit99570babcccbb964aeb402cb4458406d3ca02773 (patch)
tree9beaec6d375590a1124b38dbe9212bb98ec571d2
parent3bacdff92946dfcac98d79d4f3a0486e9f4ff5ea (diff)
downloadps3-utils-99570babcccbb964aeb402cb4458406d3ca02773.tar.gz
ps3videomode: Add version to help output.
-rw-r--r--configure.ac2
-rw-r--r--ps3videomode.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 9306614..d209d8c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
-AC_INIT(ps3-utils, 2.0.1, geoffrey.levand@am.sony.com)
+AC_INIT(ps3-utils, 2.0.1, Geoff Levand <geoffrey.levand@am.sony.com>)
# Setup the prefix options.
AC_PREFIX_DEFAULT(/usr/local)
diff --git a/ps3videomode.c b/ps3videomode.c
index eb21699..c17915d 100644
--- a/ps3videomode.c
+++ b/ps3videomode.c
@@ -53,6 +53,18 @@
#define PS3AV_MODE_HDCP_OFF 0x1000 /* Retail PS3 doesn't support this */
#endif
+#if defined(PACKAGE_VERSION) && defined(PACKAGE_NAME)
+#define PS3AV_VERSION "ps3videomode (" PACKAGE_NAME ") " PACKAGE_VERSION "\n\n"
+#else
+#define PS3AV_VERSION ""
+#endif
+
+#if defined(PACKAGE_BUGREPORT)
+#define PS3AV_BUGREPORT "Send bug reports to " PACKAGE_BUGREPORT ".\n\n"
+#else
+#define PS3AV_BUGREPORT ""
+#endif
+
#define FB_NAME "/dev/fb0"
#define PS3FB_IOCTL_SETMODE _IOW('r', 1, int)
@@ -72,6 +84,7 @@ struct option long_options[] = {
static void usage(void)
{
printf(
+ PS3AV_VERSION
"Usage:\n"
" ps3videomode [options]\n"
"\n"
@@ -98,6 +111,7 @@ static void usage(void)
" ps3videomode -v 131 Same as above.\n"
"\n"
"If no argument is given, ps3videomode displays the current video mode.\n"
+ PS3AV_BUGREPORT
);
exit(1);
}