Last change
on this file since 1619 was 821, checked in by Bruno Cornec, 18 years ago |
Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)
|
-
Property svn:executable
set to
*
|
File size:
583 bytes
|
Rev | Line | |
---|
[821] | 1 | #!/bin/sh
|
---|
| 2 | # Make busybox links list file.
|
---|
| 3 |
|
---|
| 4 | # input $1: full path to Config.h
|
---|
| 5 | # input $2: full path to applets.h
|
---|
| 6 | # output (stdout): list of pathnames that should be linked to busybox
|
---|
| 7 |
|
---|
| 8 | # Maintainer: Larry Doolittle <ldoolitt@recycle.lbl.gov>
|
---|
| 9 |
|
---|
| 10 | export LC_ALL=POSIX
|
---|
| 11 | export LC_CTYPE=POSIX
|
---|
| 12 |
|
---|
| 13 | CONFIG_H=${1:-include/bb_config.h}
|
---|
| 14 | APPLETS_H=${2:-include/applets.h}
|
---|
| 15 | $HOSTCC -E -DMAKE_LINKS -include $CONFIG_H $APPLETS_H |
|
---|
| 16 | awk '/^[ \t]*LINK/{
|
---|
| 17 | dir=substr($2,8)
|
---|
| 18 | gsub("_","/",dir)
|
---|
| 19 | if(dir=="/ROOT") dir=""
|
---|
| 20 | file=$3
|
---|
| 21 | gsub("\"","",file)
|
---|
| 22 | if (file=="busybox") next
|
---|
| 23 | print tolower(dir) "/" file
|
---|
| 24 | }'
|
---|
Note:
See
TracBrowser
for help on using the repository browser.