blob: 5cc957ff91f5c3f31c686de0df43fc9a6aa31eb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
export TOPDIR=$(realpath ..)
if gmake --help >/dev/null 2>&1; then
export GMAKE=gmake
else
export GMAKE=make
fi
for subdir in bash; do
cd $subdir
pn=$($GMAKE show=PKG_NAME)
typeset -u pnu=$pn
pd=$($GMAKE show=PKG_DESCR)
ph=$($GMAKE show=PKG_URL)
(print "config ADK_PACKAGE_$pnu"
pnf=$pn
while (( ${#pnf} < 34 )); do
pnf=$pnf.
done
print "\tprompt \"$pnf ${pd:-$pn}\""
print \\ttristate
print \\tdefault n
if [[ -n $pd$ph ]]; then
print \\thelp
[[ -n $pd ]] && print "\t $pd"
[[ -n $pd && -n $ph ]] && print '\t '
[[ -n $ph ]] && print "\t $ph"
fi
) >Config.in
done
|