diff options
| author | Michael Forney <mforney@mforney.org> | 2016-04-10 02:58:52 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-04-15 02:10:08 -0700 |
| commit | dbb513d4572e2eed5e540b7b7fb7e9c8f544cb04 (patch) | |
| tree | 2260140732591d6ca455e493305884c21f063b3f /core/sbase | |
| parent | 5f753e71fa37011b9bf7bcec482fe4a4a904dc9e (diff) | |
Add some initial packages
Diffstat (limited to 'core/sbase')
| -rw-r--r-- | core/sbase/gen.rc | 127 | ||||
| m--------- | core/sbase/src | 0 |
2 files changed, 127 insertions, 0 deletions
diff --git a/core/sbase/gen.rc b/core/sbase/gen.rc new file mode 100644 index 00000000..38b6ae36 --- /dev/null +++ b/core/sbase/gen.rc @@ -0,0 +1,127 @@ +cflags\ + -D_DEFAULT_SOURCE\ + -D_BSD_SOURCE\ + -D_XOPEN_SOURCE'='700\ + -D_FILE_OFFSET_BITS'='64\ + -std'='c99 -Wall -pedantic\ + -I '$outdir' + +cd src + +static_lib libutil.a libutil/*.c +static_lib libutf.a libutf/*.c + +executables=(\ + basename\ + cal\ + cat\ + chgrp\ + chmod\ + chown\ + chroot\ + cksum\ + cmp\ + cols\ + comm\ + cp\ + cron\ + cut\ + date\ + dirname\ + du\ + echo\ + ed\ + env\ + expand\ + expr\ + false\ + find\ + flock\ + fold\ + getconf\ + grep\ + head\ + join\ + hostname\ + kill\ + link\ + ln\ + logger\ + logname\ + ls\ + md5sum\ + mkdir\ + mkfifo\ + mktemp\ + mv\ + nice\ + nl\ + nohup\ + od\ + pathchk\ + paste\ + printenv\ + printf\ + pwd\ + readlink\ + renice\ + rm\ + rmdir\ + sed\ + seq\ + setsid\ + sha1sum\ + sha224sum\ + sha256sum\ + sha384sum\ + sha512sum\ + sha512-224sum\ + sha512-256sum\ + sleep\ + sort\ + split\ + sponge\ + strings\ + sync\ + tail\ + tar\ + tee\ + test\ + tftp\ + time\ + touch\ + tr\ + true\ + tsort\ + tty\ + uname\ + unexpand\ + uniq\ + unlink\ + uudecode\ + uuencode\ + wc\ + which\ + whoami\ + xargs\ + install\ + yes\ +) + +getconf_hdrs=( confstr limits sysconf pathconf )^_l.h +getconf_outs='$outdir'/$getconf_hdrs +rule getconf_headers 'getconf=$$PWD/$srcdir/src/getconf.sh && cd $outdir && $$getconf' +build $"getconf_outs getconf_headers '| $srcdir/src/getconf.sh' + +for(exe in $executables) { + if(~ $exe install) src=x$exe + if not src=$exe + + cc $src.c '||' '$outdir/stamp' + link $exe $src.c.o libutil.a libutf.a + + file bin/$exe '$outdir'/$exe 755 + file share/man/man1/$exe.1 '$srcdir'/src/$src.1 644 +} + +stamp $getconf_hdrs diff --git a/core/sbase/src b/core/sbase/src new file mode 160000 +Subproject d89cd4811898a183f629323b855d1b5623c2da5 |
