Include SVN version in applications
This commit is contained in:
parent
38de46632b
commit
19f3e65a9d
3 changed files with 10 additions and 3 deletions
|
@ -50,6 +50,7 @@
|
|||
#include "obj/unmapped.pngh"
|
||||
|
||||
|
||||
extern const char *htsversion;
|
||||
|
||||
const char *ajax_tabnames[] = {
|
||||
[AJAX_TAB_CHANNELS] = "Channels",
|
||||
|
@ -597,13 +598,14 @@ ajax_page_root(http_connection_t *hc, http_reply_t *hr,
|
|||
tcp_qprintf(tq,
|
||||
"<div style=\"width: 100%%; overflow: hidden\">"
|
||||
"<div style=\"float: left; width: 30%%\">"
|
||||
"Tvheadend v1.x (r?)"
|
||||
"Tvheadend (%s)"
|
||||
"</div>"
|
||||
"<div style=\"float: left; width: 40%%\" id=\"topmenu\"></div>"
|
||||
"<div style=\"float: left; width: 30%%; text-align: right\">"
|
||||
" "
|
||||
"</div>"
|
||||
"</div>");
|
||||
"</div>",
|
||||
htsversion);
|
||||
|
||||
ajax_mailbox_start(tq);
|
||||
|
||||
|
|
4
main.c
4
main.c
|
@ -70,7 +70,7 @@ int running;
|
|||
int startupcounter;
|
||||
const char *settings_dir;
|
||||
const char *sys_warning;
|
||||
|
||||
extern const char *htsversion;
|
||||
static pthread_mutex_t tag_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
static uint32_t tag_tally;
|
||||
|
||||
|
@ -149,6 +149,8 @@ main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
printf("Tvheadend %s starting\n", htsversion);
|
||||
|
||||
config_open_by_prgname("tvheadend", cfgfile);
|
||||
|
||||
if(forkaway) {
|
||||
|
|
3
version.c
Normal file
3
version.c
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "version.h"
|
||||
|
||||
const char *htsversion=HTS_VERSION;
|
Loading…
Add table
Reference in a new issue