Commit e7b8fd4b authored by Tim Gardner's avatar Tim Gardner

UBUNTU: [debian] get-firmware: Filter new files through fwinfo

Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent e94db9b9
...@@ -18,6 +18,17 @@ then ...@@ -18,6 +18,17 @@ then
echo You must run this script from the root of the repo echo You must run this script from the root of the repo
exit 1 exit 1
fi fi
. debian/debian.env
NFWINFO="`find $DEBIAN -name fwinfo|wc -l`"
if [ ! "$NFWINFO" = "1" ]
then
echo Your repo is hosed. There can only be one fwinfo file.
find $DEBIAN -name fwinfo
exit 1
fi
FWINFO="`pwd`/`find $DEBIAN -name fwinfo`"
CDIR=`pwd` CDIR=`pwd`
OFW=$1 OFW=$1
...@@ -30,12 +41,15 @@ cd $NFW ...@@ -30,12 +41,15 @@ cd $NFW
(find . -type f | egrep -v "debian|git|LICEN|WHEN|READ|Make|configure" | sed 's;\./;;' | \ (find . -type f | egrep -v "debian|git|LICEN|WHEN|READ|Make|configure" | sed 's;\./;;' | \
while read f while read f
do do
if [ ! -f $OFW/$f ] if grep -q $f $FWINFO
then
echo $f
elif ! cmp $f $OFW/$f > /dev/null
then then
echo $f if [ ! -f $OFW/$f ]
then
echo $f
elif ! cmp $f $OFW/$f > /dev/null
then
echo $f
fi
fi fi
done) |\ done) |\
while read f while read f
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment