[BusyBox] Changing the way help is displayed...

Larry Doolittle ldoolitt at recycle.lbl.gov
Mon Apr 16 21:40:39 UTC 2001


> > There may not be a reason to have <appletname.h>.  The only valid
> > definition it would include is int <appletname>_main().  That can
> > be generated without using a separate file.
> 
> 1) For trivial generator busybox_applets.h

for f in *.cfg; do echo "int ${f%%.cfg}_main()"; done

> 2) For aliases ("test"=="[", "init"=="linuxrc", "dos2unix"...)
> ...

awk '/^ \* alias: /{
   a=FILENAME
   sub(".cfg$","",a)
   print "APPLET_NOUSAGE(\"" $3 "\", " a "_main)"
}' *.cfg

       - Larry





More information about the busybox mailing list