1 #_VERSION_MINOR[[:space:]]\+=
2 BRDIR
=/root
/buildroot-2017.08
.1
4 for pkg
in /tmp
/*.1; do
9 pkgname
=`echo "$file" | sed 's/\.1$//'`
11 if [ ! -z "$VERSION" ]; then
14 if [ -e $BRDIR/package
/$DIR/${pkgname}.mk
]; then
16 echo package
/$DIR/${pkgname}.mk
17 echo "DIR=$DIR" > /tmp
/${pkgname}.2
18 grep "_VERSION[[:space:]]\+=\|_VERSION_MAJOR[[:space:]]\+=\|_VERSION_MINOR[[:space:]]\+=\|_VERSION_UPSTREAM[[:space:]]\+=" $BRDIR/package
/$DIR/${pkgname}.mk
>> /tmp
/${pkgname}.2
19 sed -i -e "s/[()]//g" -e "s/[[:space:]]\+//g" /tmp
/${pkgname}.2
20 sed -i "s/\(.*\)_VERSION=\(.*\)$/VERSION=\2/" /tmp
/${pkgname}.2