Check for file presence added (thanks again Chris for reporting it).
This commit is contained in:
parent
23817b6b7d
commit
aef6f012fe
@ -1,3 +1,8 @@
|
|||||||
|
2009-07-26 Frederic Culot <frederic@culot.org>
|
||||||
|
|
||||||
|
* src/args.c (parse_args): check for file presence added (thanks
|
||||||
|
again Chris for reporting it)
|
||||||
|
|
||||||
2009-07-23 Frederic Culot <frederic@culot.org>
|
2009-07-23 Frederic Culot <frederic@culot.org>
|
||||||
|
|
||||||
* src/io.c (io_fprintln): new function
|
* src/io.c (io_fprintln): new function
|
||||||
@ -6,11 +11,13 @@
|
|||||||
|
|
||||||
* src/dmon.c (dmon_start): log messages added
|
* src/dmon.c (dmon_start): log messages added
|
||||||
|
|
||||||
* src/vars.[ch]: daemon log file path added
|
* src/vars.[ch]: daemon log and pid file path added
|
||||||
|
|
||||||
* src/io.c: incorrect duration format when exporting to ical
|
* src/io.c: incorrect duration format when exporting to ical
|
||||||
(thanks Chris for reporting it)
|
(thanks Chris for reporting it)
|
||||||
|
|
||||||
|
* src/io.c (io_dump_pid): new function
|
||||||
|
|
||||||
2009-07-20 Frederic Culot <frederic@culot.org>
|
2009-07-20 Frederic Culot <frederic@culot.org>
|
||||||
|
|
||||||
* src/utils.c (psleep): new function
|
* src/utils.c (psleep): new function
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $calcurse: args.c,v 1.56 2009/07/15 19:16:22 culot Exp $ */
|
/* $calcurse: args.c,v 1.57 2009/07/26 12:30:23 culot Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Calcurse - text-based organizer
|
* Calcurse - text-based organizer
|
||||||
@ -872,18 +872,22 @@ parse_args (int argc, char **argv, conf_t *conf)
|
|||||||
}
|
}
|
||||||
if (tflag)
|
if (tflag)
|
||||||
{
|
{
|
||||||
|
io_check_file (path_todo, (int *)0);
|
||||||
io_load_todo ();
|
io_load_todo ();
|
||||||
todo_arg (tnum, Nflag, preg);
|
todo_arg (tnum, Nflag, preg);
|
||||||
non_interactive = 1;
|
non_interactive = 1;
|
||||||
}
|
}
|
||||||
if (nflag)
|
if (nflag)
|
||||||
{
|
{
|
||||||
|
io_check_file (path_apts, (int *)0);
|
||||||
io_load_app ();
|
io_load_app ();
|
||||||
next_arg ();
|
next_arg ();
|
||||||
non_interactive = 1;
|
non_interactive = 1;
|
||||||
}
|
}
|
||||||
if (dflag || rflag || sflag)
|
if (dflag || rflag || sflag)
|
||||||
{
|
{
|
||||||
|
io_check_file (path_apts, (int *)0);
|
||||||
|
io_check_file (path_conf, (int *)0);
|
||||||
io_load_app ();
|
io_load_app ();
|
||||||
custom_load_conf (conf, 0); /* To get output date format. */
|
custom_load_conf (conf, 0); /* To get output date format. */
|
||||||
if (dflag)
|
if (dflag)
|
||||||
@ -897,6 +901,8 @@ parse_args (int argc, char **argv, conf_t *conf)
|
|||||||
{
|
{
|
||||||
date_t day;
|
date_t day;
|
||||||
|
|
||||||
|
io_check_file (path_apts, (int *)0);
|
||||||
|
io_check_file (path_conf, (int *)0);
|
||||||
vars_init (conf);
|
vars_init (conf);
|
||||||
custom_load_conf (conf, 0); /* To get output date format. */
|
custom_load_conf (conf, 0); /* To get output date format. */
|
||||||
io_load_app ();
|
io_load_app ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user