svn commit: trunk/busybox: applets scripts

Bernhard Fischer rep.nop at aon.at
Tue Aug 15 14:07:11 UTC 2006


On Fri, Aug 04, 2006 at 02:05:33PM -0700, landley at busybox.net wrote:
>Author: landley
>Date: 2006-08-04 14:05:33 -0700 (Fri, 04 Aug 2006)
>New Revision: 15781
>
>Log:
>Digging up my old "make standalone" stuff from a year ago:
>http://busybox.net/lists/busybox/2005-September/015766.html
>
>I renamed it "individual" to not confuse it with the standalone shell.  (Which
>it isn't compatible with for obvious reasons.)  Configure busybox (I did
>make defconfig), then run scripts/individual and it'll build an individual
>version of each applet in the "build" subdirectory.
>
>Currently it builds 146 and fails to build 104 applets out of "make defconfig".
>I haven't taught it about multi-file applets yet (like tar), or the ones where
>two applets get built from the same source (for example, zcat is a trivial
>variant of gunzip so there is no zcat.c).  But here's a start.
>
>
>Added:
>   trunk/busybox/applets/individual.c
>   trunk/busybox/scripts/individual
>
>
>Changeset:
>Added: trunk/busybox/applets/individual.c
>===================================================================
>--- trunk/busybox/applets/individual.c	2006-08-04 20:39:56 UTC (rev 15780)
>+++ trunk/busybox/applets/individual.c	2006-08-04 21:05:33 UTC (rev 15781)
>@@ -0,0 +1,26 @@
>+/* Minimal wrapper to build an individual busybox applet.
>+ *
>+ * Copyright 2005 Rob Landley <rob at landley.net

There is something missing here ----------------^

Also, according to "new-applet-HOWTO.txt" this is supposed to be of the
form:
* Copyright (C) [YEAR] by [YOUR NAME] <YOUR EMAIL>

>+ * 
>+ * Licensed under GPLv2 or later, see file License in this tarball for details
>+ */
>+
>+const char *bb_applet_name;
>+
>+#include <stdio.h>
>+#include <stdlib.h>
>+#include "usage.h"
>+
>+int main(int argc, char *argv[])
>+{
>+	bb_applet_name=argv[0];
>+
>+	return APPLET_main(argc,argv);
>+}
>+
>+void bb_show_usage(void)
>+{
>+	printf(APPLET_full_usage "\n");

puts?
>+
>+	exit(1);
>+}
>
>Added: trunk/busybox/scripts/individual
[snip]
Sounds very brittle to me, but i haven't tried nor read it yet anyway.



More information about the busybox mailing list