New build infrastructure to generate FLAG_ macros and TT alias, #define FOR_commandna...
authorRob Landley <rob@landley.net>
Mon, 8 Oct 2012 05:02:30 +0000 (00:02 -0500)
committerRob Landley <rob@landley.net>
Mon, 8 Oct 2012 05:02:30 +0000 (00:02 -0500)
commitc0e56edaf256adb6c60c5a052525a1ffbb927901
treed6bcc5c181ca46910a12d4dece4b26d6c71be3e1
parentdc7a77d1940858495f76998f4d13cac9f73e0226
New build infrastructure to generate FLAG_ macros and TT alias, #define FOR_commandname before #including toys.h to trigger it. Rename DEFINE_GLOBALS() to just GLOBALS() (because I could never remember if it was DECLARE_GLOBALS). Convert existing commands to use new infrastructure, and replace optflag constants with FLAG_ macros where appropriate.
56 files changed:
scripts/make.sh
toys.h
toys/lsb/dmesg.c
toys/lsb/hostname.c
toys/lsb/killall.c
toys/lsb/mknod.c
toys/lsb/mktemp.c
toys/lsb/passwd.c
toys/other/catv.c
toys/other/dos2unix.c
toys/other/free.c
toys/other/hello.c
toys/other/login.c
toys/other/mke2fs.c
toys/other/modinfo.c
toys/other/mountpoint.c
toys/other/netcat.c
toys/other/oneit.c
toys/other/rmmod.c
toys/other/sha1sum.c
toys/other/swapon.c
toys/other/switch_root.c
toys/other/taskset.c
toys/other/truncate.c
toys/other/vmstat.c
toys/posix/chgrp.c
toys/posix/chmod.c
toys/posix/cksum.c
toys/posix/cmp.c
toys/posix/comm.c
toys/posix/cp.c
toys/posix/date.c
toys/posix/df.c
toys/posix/du.c
toys/posix/echo.c
toys/posix/env.c
toys/posix/head.c
toys/posix/id.c
toys/posix/kill.c
toys/posix/ln.c
toys/posix/ls.c
toys/posix/mkdir.c
toys/posix/mkfifo.c
toys/posix/nice.c
toys/posix/od.c
toys/posix/patch.c
toys/posix/sed.c
toys/posix/sh.c
toys/posix/sort.c
toys/posix/tail.c
toys/posix/tee.c
toys/posix/uname.c
toys/posix/uniq.c
toys/posix/wc.c
toys/posix/xargs.c
www/code.html