sin
ce86a05f36
Import strcasestr() from musl and remove -D_GNU_SOURCE
2014-11-20 23:46:06 +00:00
sin
5197affac5
Remove col(1)
...
Not quite necessary to have this in sbase at the moment. We can do
a clean implementation when required.
This implementation also has some bugs that they have been fixed
in OpenBSD -current but I am too lazy to backport (we also had local
changes to col(1)).
printf(1) as imported from OpenBSD will stay for now because I need
it for booting my system.
2014-11-20 13:57:52 +00:00
sin
0d7c2351b4
Remove csplit(1)
...
Get rid of it for now as it is not really widely used. We can do
a simple implementation when time comes.
Remove the table from README because it is not easy to edit unless
you use emacs.
2014-11-20 13:52:18 +00:00
sin
2c42905f63
Make libutf.a and libutil.a different
2014-11-19 10:51:29 +00:00
Evan Gates
84b08427a1
remove agetline
2014-11-18 21:05:28 +00:00
Evan Gates
cca0522872
clear suffix list then add only .o and .c in that order to avoid use of builtin .c inference rule skipping .c.o
2014-11-18 20:18:05 +00:00
sin
fda3ed9a56
Remove .POSIX from Makefile
2014-11-18 19:28:04 +00:00
sin
027052f5e5
Rename util/ to libutil/
2014-11-17 16:48:34 +00:00
sin
cb7cbde722
Add compat.h
2014-11-17 15:46:28 +00:00
sin
56709a2414
Import libutf from http://git.suckless.org/libutf
2014-11-17 15:46:01 +00:00
sin
ba70777b56
Remove binlib and bin from PHONY
2014-11-17 14:46:52 +00:00
sin
74ac827587
Require GNU make to build sbase
...
We seem to have problems building individual tools across various
make implementations. If anyone can step up and fix this we will
remove the dependency on GNU make.
2014-11-17 13:54:24 +00:00
sin
a84cbe9e1c
Avoid messed up output because of trailing spaces
2014-11-17 13:22:54 +00:00
sin
ba89dc565f
Add .PHONY targets
2014-11-17 13:02:32 +00:00
sin
0d0624b855
Use $(RANLIB) in Makefile
2014-11-17 12:24:03 +00:00
sin
2ee3ae5994
Use LIB, LIBSRC and LIBOBJ and derive SRC, OBJ and MAN from BIN
2014-11-17 12:14:25 +00:00
sin
4a97e0b526
List libutil.a first to be a bit more clear
2014-11-17 10:50:45 +00:00
sin
1b0d2c1ab3
Make clean more verbose
2014-11-17 10:39:02 +00:00
sin
e1c044e298
Do not append CPPFLAGS to CFLAGS
2014-11-17 10:38:37 +00:00
sin
2fd6e769dd
Rename util.a to libutil.a
2014-11-17 10:37:07 +00:00
sin
9a9d6bb0dc
Make build process more verbose
2014-11-17 10:36:39 +00:00
Hiltjo Posthuma
ce90cc57d4
util: add eregcomp: show descriptive error message on regcomp error
2014-11-16 14:36:41 +00:00
sin
67fcc79046
Use queue.h in grep(1)
2014-11-16 12:39:15 +00:00
sin
2982d88533
Import ealloc.c from ubase
2014-11-14 18:10:05 +00:00
sin
3de142ba70
Delete dist when cleaning
2014-11-14 14:41:05 +00:00
sin
300eedc50a
Add README and TODO to dist target
2014-11-14 11:58:42 +00:00
sin
ee55fbe9e9
Just make $(HDR) a prereq for $(OBJ)
...
The result is always correct but it might do redundant builds.
Not really an issue as sbase builds very fast. The alternative is
to track the header deps manually but this is already incomplete and
unlikely to be kept up to date.
2014-11-13 18:28:18 +00:00
sin
2c7516c716
Sort HDR in Makefile
2014-11-13 18:21:19 +00:00
Evan Gates
5cf965ffbf
return exit status of command in sbase-box
2014-11-08 13:50:55 +00:00
Hiltjo Posthuma
b6b8fe9591
separate humansize into a util function
...
also show 1 decimal of human size string like: 4M -> 4.4M
2014-10-18 23:56:51 +01:00
Brandon Mulcahy
7a73da6864
Add logname(1)
2014-10-17 15:36:27 +01:00
Markus Teich
314885836c
Add link(1)
2014-10-17 15:36:16 +01:00
sin
c0b9a8533f
Import csplit(1) from OpenBSD
...
Modified slightly to conform to the sbase style.
2014-10-16 12:22:36 +01:00
sin
d1a1c42eb3
Update only the modified objects in util.a
2014-10-16 11:33:05 +01:00
sin
a6793ced1b
Another EXIT_SUCCESS nuked
2014-10-02 23:49:19 +01:00
sin
a48b850d3f
Import col(1) from OpenBSD with minor modifications
...
Remove getopt, use arg.h.
2014-09-29 19:52:31 +01:00
sin
618aecd2ec
Import expr(1) from OpenBSD
...
Cleanup + manpage to be done.
2014-09-29 13:44:49 +01:00
sin
fe41494ed3
Import printf(1) from OpenBSD
2014-09-28 15:12:15 +01:00
Tuukka Kataja
8b87d0098a
Add unexpand(1)
2014-06-09 17:00:13 +01:00
Hiltjo Posthuma
2ab2d2ee3b
remove afgets
...
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-06-01 18:03:20 +01:00
Hiltjo Posthuma
d12e953f18
add agetline, separate estrtod to util
...
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-06-01 18:01:45 +01:00
Hiltjo Posthuma
560340341f
make parsemode() generic
...
use for uudecode and chmod
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-09 15:40:32 +01:00
sin
bc0de5e7e5
Rename mc(1) to cols(1)
...
There is an obvious name collision with the popular file manager
midnight commander.
2014-03-12 14:47:38 +00:00
sin
17338bfbb8
id(1) is not portable - move it to ubase
2014-02-27 14:30:21 +00:00
sin
386aa62b94
Remove who(1) from sbase
...
It now lives in ubase.
2014-02-14 15:08:52 +00:00
dsp
7008d751b2
Initial commit of the uudecode tool and man page
...
Currently it operates only on regular files and does not
support Base64.
2014-02-02 20:50:31 +00:00
sin
aab53ef197
Add uuencode(1)
2014-01-31 15:29:11 +00:00
sin
f4609e2836
Remove stat(1) from sbase as it is not portable
...
This utility uses major()/minor() and they are not portable.
It belongs in ubase.
2014-01-30 16:26:40 +00:00
sin
fb12183c52
Add strlcpy()/strlcat()
...
Refactor recurse() routine in preparation to moving tar(1) over
to use it instead of the ftw() interface.
2014-01-30 14:55:05 +00:00
sin
43057f3a39
Remove mknod(1) from sbase
...
mknod(1) is not POSIX and it is not portable so it should be
in ubase instead of sbase.
2014-01-28 16:53:53 +00:00