comparison toys/hello.c @ 233:d4176f3f3835

Zap toys/Config.in and instead create generated/Config.in from contents of toys/*.c. Move relevant info into comment at the top of each toys/*.c. Also convert more of Makefile into a thin wrapper around shell scripts that actually do the work. (Makefile is only still there for the user interface.)
author Rob Landley <rob@landley.net>
date Sat, 19 Jan 2008 17:08:39 -0600
parents 30a6db5a95c2
children 163498bf547b
comparison
equal deleted inserted replaced
232:cd4d5630c978 233:d4176f3f3835
1 /* vi: set sw=4 ts=4: */ 1 /* vi: set sw=4 ts=4:
2 /* 2 *
3 * hello.c - A hello world program. 3 * hello.c - A hello world program.
4 * 4 *
5 * Copyright 2006 Rob Landley <rob@landley.net>
6 *
5 * Not in SUSv3. 7 * Not in SUSv3.
6 */ 8 * See http://www.opengroup.org/onlinepubs/009695399/utilities/
9
10 config HELLO
11 bool "hello"
12 default y
13 help
14 A hello world program. You don't need this.
15
16 Mostly used as an example/skeleton file for adding new commands,
17 occasionally nice to test kernel booting via "init=/bin/hello".
18 */
7 19
8 #include "toys.h" 20 #include "toys.h"
9 21
10 void hello_main(void) 22 void hello_main(void)
11 { 23 {