mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 20:26:21 +00:00
Added PACKAGE_STATUS to configure.ac
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ([2.65])
|
||||
AC_INIT([profanity], [0.1.9dev], [boothj5web@gmail.com])
|
||||
AC_INIT([profanity], [0.1.9], [boothj5web@gmail.com])
|
||||
AC_DEFINE([PACKAGE_STATUS], ["release"], [Status of this build])
|
||||
AC_CONFIG_SRCDIR([src/main.c])
|
||||
AC_CONFIG_HEADERS([src/config.h])
|
||||
AC_CONFIG_AUX_DIR([build-aux])
|
||||
|
||||
@@ -820,7 +820,12 @@ cons_about(void)
|
||||
_cons_splash_logo();
|
||||
} else {
|
||||
_win_show_time(_cons_win);
|
||||
wprintw(_cons_win, "Welcome to Profanity, version %s\n", PACKAGE_VERSION);
|
||||
|
||||
if (strcmp(PACKAGE_STATUS, "dev") == 0) {
|
||||
wprintw(_cons_win, "Welcome to Profanity, version %sdev\n", PACKAGE_VERSION);
|
||||
} else {
|
||||
wprintw(_cons_win, "Welcome to Profanity, version %s\n", PACKAGE_VERSION);
|
||||
}
|
||||
}
|
||||
|
||||
_win_show_time(_cons_win);
|
||||
@@ -858,7 +863,6 @@ _cons_splash_logo(void)
|
||||
_win_show_time(_cons_win);
|
||||
wprintw(_cons_win, "Welcome to\n");
|
||||
|
||||
|
||||
_win_show_time(_cons_win);
|
||||
wattron(_cons_win, COLOUR_OFFLINE);
|
||||
wprintw(_cons_win, " ___ _ \n");
|
||||
@@ -897,7 +901,11 @@ _cons_splash_logo(void)
|
||||
_win_show_time(_cons_win);
|
||||
wprintw(_cons_win, "\n");
|
||||
_win_show_time(_cons_win);
|
||||
wprintw(_cons_win, "Version %s\n", PACKAGE_VERSION);
|
||||
if (strcmp(PACKAGE_STATUS, "dev") == 0) {
|
||||
wprintw(_cons_win, "Version %sdev\n", PACKAGE_VERSION);
|
||||
} else {
|
||||
wprintw(_cons_win, "Version %s\n", PACKAGE_VERSION);
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user