summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/update-patches.sh
blob: f9f498b778615e0597ff9983a7850fc6f7da6898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash -e
cd `dirname "$0"`
rm -fR patches
for DIR in `find android/ -name .git`
do
    DIR=`dirname ${DIR}`
    DST=patches/${DIR:8}
    echo ${DST}
    mkdir -p `dirname ${DST}`
    cp -a ${DIR:8} `dirname ${DIR}`
    (cd ${DIR} && git diff) > ${DST}.patch
    (cd ${DIR} && git rev-parse HEAD) > ${DST}.tag
done