tenfourfox/media/libstagefright/update-patches.sh

14 lines
320 B
Bash
Raw Normal View History

2017-04-19 07:56:45 +00:00
#!/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