1 #_VERSION_MINOR[[:space:]]\+=
4 grep "^BR2_PACKAGE_" .config.
set |
sed "s/=.*//" | \
5 while read pkg_entry
; do
6 find package
-type f
-name "Config.in" |
xargs -r grep "config[[:space:]]\+$pkg_entry\|menuconfig[[:space:]]\+$pkg_entry"
7 done |
sed -e 's%/[^/]*$%%' -e 's%^package/%%' | \
10 if ! echo "$processed" |
grep -q "^${dir}$"; then
11 pkgname
=$
(basename $dir)
12 if [ -e package
/$dir/${pkgname}.mk
]; then
13 echo package
/$dir/${pkgname}.mk
15 echo "DIR=$dir" > /tmp
/${pkgname}.1
16 grep "_VERSION[[:space:]]\+=\|_VERSION_MAJOR[[:space:]]\+=\|_VERSION_MINOR[[:space:]]\+=\|_VERSION_UPSTREAM[[:space:]]\+=" package
/$dir/${pkgname}.mk
>> /tmp
/${pkgname}.1
17 sed -i -e "s/[()]//g" -e "s/[[:space:]]\+//g" /tmp
/${pkgname}.1
19 sed -i "s/\(.*\)_VERSION=\(.*\)$/VERSION=\2/" /tmp
/${pkgname}.1
20 if grep -q "\$call\|\$shell" /tmp
/${pkgname}.1; then
21 mv /tmp
/${pkgname}.1 /tmp
/${pkgname}.1_
25 [ -z "$processed" ] && processed
="$dir" || processed
=`echo -ne "$processed\n$dir"`