Joachim Nilsson
eaac01871b
Simplify introduction, and tone it down a bit ...
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-22 12:08:05 +01:00
Joachim Nilsson
8cefa12675
Remove Emacs hinting
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-22 12:08:05 +01:00
Joachim Nilsson
5893010074
Move TODO items to TODO.md
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-22 12:08:05 +01:00
Joachim Nilsson
d84bcb3847
copyfile(),movefile(): constify
...
A `const` string is a declaration to the user of an API that the
implementation does not touch the contents.
We do some `(char *)` casting in this patch, but the resulting
code still does not touch the contents of the original pointer.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-22 11:34:46 +01:00
Joachim Nilsson
a9a3a2dda1
constify
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-22 11:34:24 +01:00
Joachim Nilsson
20af39300c
ifconfig(): constify
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-22 11:33:55 +01:00
Joachim Nilsson
7b612cda83
lfile: constify
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-22 11:33:37 +01:00
Joachim Nilsson
60406c33f6
Bump version, -pre, for v2.1.0 release cycle
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-22 10:57:37 +01:00
Joachim Nilsson
1d21b11802
lftok(): Refactor, collapse and simplify a bit
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-22 10:56:54 +01:00
Joachim Nilsson
a3badc85f8
Fix FTBFS, add missing fcntl.h header for AT_FDCWD
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-21 17:15:39 +01:00
Joachim Nilsson
ac936448f5
Only define min() and max() macros if not already defined
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-21 14:19:45 +01:00
Joachim Nilsson
3a26ab28b2
Fix #11 : Allow relative paths to touch()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-21 14:17:43 +01:00
Joachim Nilsson
123108fbf9
Fix #10 : Supply a default PATH for test
...
Set a default PATH matching the root user's defaults.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-07 23:09:19 +01:00
Joachim Nilsson
3545d63d2e
Fix #9 : Use /usr/bin/which, not /bin/which, for unit test.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-07 22:15:40 +01:00
Joachim Nilsson
3e921d72e5
conio.h: Add initscr() declaration after relocation to conio.c
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 15:39:16 +01:00
Joachim Nilsson
1c9c038c06
Update copyfile() and rsync() API descriptions, new option flags
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
v2.0.0
2017-11-22 14:18:27 +01:00
Joachim Nilsson
e5b79443b8
Bump version for v2.0.0 release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 14:01:44 +01:00
Joachim Nilsson
589465f48b
Update ChangeLog for v2.0.0 release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 14:01:44 +01:00
Joachim Nilsson
1f745ff9a0
Add head-up to users about changes in v2.0 early in text
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 13:58:01 +01:00
Joachim Nilsson
71a0c53029
Bump ABI version, major changes in this release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 13:57:44 +01:00
Joachim Nilsson
6608d2e8c9
Remove tree() from libite, moved to troglobit/toolbox.git instead
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 13:49:05 +01:00
Joachim Nilsson
62334c80fd
Remove fmode() from libite, it's safer to use stat() instead
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 12:51:49 +01:00
Joachim Nilsson
626d5456f7
copyfile(): Reduce dependency and simplify, already called stat()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 12:49:49 +01:00
Joachim Nilsson
e3dff8e5be
Reorder source files, sort of alphabetically
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 12:46:39 +01:00
Joachim Nilsson
bbb951dc23
conio.h: Move initscr() function to conio.c
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 10:28:07 +01:00
Joachim Nilsson
94800e7d5c
Use distcheck in release target, verifies generated tarball is buildable
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 09:04:28 +01:00
Joachim Nilsson
3442d8e12b
Update unit test suite with new path to library and header files
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 09:03:54 +01:00
Joachim Nilsson
75f57283bd
Don't guess where conio.h is, rely on check.h instead
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 09:02:51 +01:00
Joachim Nilsson
daf41d326b
Relocate source files to an src/ sub directory
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-22 09:02:21 +01:00
Joachim Nilsson
3179be4348
Update ChangeLog, hint at future v2.0
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-21 23:57:31 +01:00
Joachim Nilsson
56530a8c78
Ignore global indexing files
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-20 18:37:59 +01:00
Joachim Nilsson
abd6e3abd6
Update rsync() unit test slightly, does not verify MTIME yet ...
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-20 17:32:31 +01:00
Joachim Nilsson
b078a8676f
rsync(): Refactor @delete argument into an @opt to keep mtime
...
This patch changes the @delete rsync() argument to @opt. The first bit
is reserved for %LITE_FOPT_RSYNC_DELETE, for backwards compatibility.
A new %LITE_FOPT_KEEP_MTIME option is also added. If set the mtime of
the @src file is set on @dst, both directories and regular files are
fully supported. However, if the base @dst directory does not exist,
and rsync() has to create it, its mtime will be the time of the last
file copied into it.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-20 17:29:39 +01:00
Joachim Nilsson
c2b92a38ef
copyfile(): Refactor @sym argument into an @opt to keep mtime
...
This patch changes the @sym copyfile() argument to @opt. The first bit
is reserved for %LITE_FOPT_COPYFILE_SYM, for backwards compatibility.
A new %LITE_FOPT_KEEP_MTIME option is also added. If set the mtime of
the @src file is set on @dst.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-20 17:24:08 +01:00
Joachim Nilsson
98b2e9d426
debian/changelog: New upstream release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-19 22:43:03 +01:00
Joachim Nilsson
96d3e5dd8b
Bump version for v1.9.4 release cycle (-pre)
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-16 21:31:33 +01:00
Joachim Nilsson
ff626acb73
Update ChangeLog for upcoming v1.9.4
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-11-16 21:31:20 +01:00
Joachim Nilsson
ba3f7c89fb
Update makepath() unit test
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-10-31 21:08:21 +01:00
Joachim Nilsson
714ea88cc9
makepath(): Update doc, recommend mkpath() over this function
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-10-31 21:08:21 +01:00
Joachim Nilsson
add4d5d325
Fix #8 : constify mkpath() and makepath()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-10-31 21:08:21 +01:00
Joachim Nilsson
be6f276557
Fix #7 : inconsistent return value in mkpath()
...
When the required `dir` argument is missing `mkpath()` inconsistently
returns 1 instead of -1. Found by @jesponde
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-10-31 00:33:19 +01:00
Joachim Nilsson
6daebf4ea4
Bump version for v1.9.3 release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
v1.9.3
2017-10-24 15:56:30 +02:00
Joachim Nilsson
4d6e3e060e
Update ChangeLog(s) for v1.9.3
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-10-24 15:56:17 +02:00
Joachim Nilsson
86eef8e38d
tree(): Increase internal buffer size, result may be truncated
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-10-24 08:42:55 +02:00
Joachim Nilsson
d5d3dafc78
Slight ABI bump due to changes in initscr()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-10-24 08:38:10 +02:00
Joachim Nilsson
2534c398ea
initscr(): Use stdout, not stderr, just like other conio.h macros
...
A program's stderr may have been redirected by the operator. We want to
query the size of stdout, even though it is buffered, so add fflush() to
handle that.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-10-24 08:33:02 +02:00
Joachim Nilsson
3691044007
conio.h: initscr() requires termios.h as well
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-10-24 08:32:30 +02:00
Joachim Nilsson
6770dad0cc
conio.h: Minor, whitespace only
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-10-24 08:32:18 +02:00
Joachim Nilsson
ef0db5e766
initscr(): Check if stdin and stdout are TTYs first
...
Programs that may be called in the background or with the stdin/stdout
redirected are not proper TTYs and we should not try to perform any
tricks on them. This patch checks isatty() and returns standard term
sizes as a fallback.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-10-24 08:31:43 +02:00
Joachim Nilsson
485463c70e
Update tree() test, use /usr/sbin instead of /sbin
...
Seems Debian finally went through with their move to symlink /bin and
/sbin to /usr/bin and /usr/sbin, respectively.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-09-30 11:13:23 +02:00