update buildroot - work in progress development
[cmdllinux.git] / buildroot / _buildroot / _update2 / _pkg_0_update01.sh
blob8e68a7d5c374092212e6b0730750ed562e9640bd
1 #_VERSION_MINOR[[:space:]]\+=
2 BRDIR=/root/buildroot-2017.08.1
4 for pkg in /tmp/*.1; do
5 unset DIR
6 unset VERSION
7 source $pkg
8 file=`basename $pkg`
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
26 done