blob: 2067ff25eea915f66a168fcd3301bf833626fc16 [file] [log] [blame]
#!/bin/sh
. `dirname $0`/common
[ -d platform/manifest ] || lco platform/manifest
OLDVER=$1
if [ -n "$2" ]; then
NEWVER=$2
else
NEWVER=${ANDROIDVERSION}_r${ANDROIDREVISION}
fi
if ! echo $OLDVER |grep -q r; then
OLDVER="${OLDVER}_r1"
fi
if ! echo $NEWVER |grep -q r; then
NEWVER="${NEWVER}_r1"
fi
if [ -n "$3" ]; then
MANIFEST=platform/manifest/$3.xml
else
MANIFEST=platform/manifest/default.xml
fi
defaultrev="`xmllint --format $MANIFEST |grep '<default' |sed -e 's,.* revision=\",,;s,\".*,,'`"
echo $defaultrev
rm -f /tmp/changes.list
xmllint --format $MANIFEST |grep '<project' | while read r; do
name="`echo $r |sed -e 's,.* name=\",,;s,\".*,,'`"
rev=""
if echo $r |grep -q " revision=\""; then
rev="`echo $r |sed -e 's,.* revision=\",,;s,\".*,,'`"
else
rev="$defaultrev"
fi
lco $name $rev
cd $SRC/$name
git diff android-${OLDVER}..android-${NEWVER} >/tmp/changes.diff
if [ -s /tmp/changes.diff ]; then
echo $name >>/tmp/changes.list
fi
done
clear
if [ -e /tmp/changes.list ]; then
echo "Changes affect:"
cat /tmp/changes.list |while read r; do
echo "*** $r: ***"
pushd $SRC/$r
PAGER=cat git log --oneline android-${OLDVER}..android-${NEWVER}
popd
done
else
echo "No changes"
fi
rm -f /tmp/changes.list /tmp/changes.diff