Joachim Nilsson
c07bfbda58
Bump version for v2.1.0 release cycle
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2018-07-02 16:39:50 +02:00
Joachim Nilsson
0ef509c393
Minor, reorder tests alphabetically
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2018-07-02 16:38:47 +02:00
Joachim Nilsson
5620faf7bf
Add unit test for strmatch()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2018-07-02 16:38:39 +02:00
Joachim Nilsson
b6a9ed3c6d
New function(s): strnmatch() and strmatch()
...
These two functions look for a string in a (terminate) list of strings
and returns the index to that string, or -1 if not found or error.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2018-06-29 18:38:56 +02:00
Joachim Nilsson
9d63302337
Minor, whitespace + simplify
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2018-06-29 18:35:52 +02:00
Joachim Nilsson
02d9d9f8c1
Update ChangeLog and bump version for v2.0.2 release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
v2.0.2
2018-05-10 19:13:56 +02:00
Joachim Nilsson
9f92a9d572
Fix #12 : Add missing includes for INT32_MAX and MIN()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2018-05-10 19:06:07 +02:00
Joachim Nilsson
f0e3ed3342
Add basic unit test for strlite.h
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2018-05-10 19:05:48 +02:00
Joachim Nilsson
34f23a77f8
Missing defines for LLONG_MAX and LLONG_MIN
...
Some systems may not yet have defined LLONG_MAX and LLONG_MIN in
limits.h, in particular older GLIBC installs are affected.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2018-02-28 10:43:08 +01:00
Joachim Nilsson
261cf3a01b
debian/changelog; Update for new upstream release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
v2.0.1
2017-12-22 12:12:34 +01:00
Joachim Nilsson
2c9c13bd07
Update ChangeLog for v2.0.1
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-22 12:08:05 +01:00
Joachim Nilsson
59ce0c0dc4
Minor ABI bump, changes to lite.h, const + fixed up touch()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-22 12:08:05 +01:00
Joachim Nilsson
a603208da9
Redo 60406c3, this is a bug-fix release only: 2.1.0-pre --> 2.0.1
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-12-22 12:08:05 +01:00
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