aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/opie/opie_checksum_rewrite.sh
blob: efc3a10c7bed6106731ce26ef1c54fdc8a1096e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash

if ! [ -d libqpe ] ; then
    echo "Please execute at the recipes subdir of the OE source tree"
    exit 1
fi

if [ x$2 == x ] ; then
    echo "usage: $0 dl_dir version"
    exit 1
fi

if ! [ -d $1 ] ; then
    echo "Source dir $1 does not exist"
    exit 1
fi

FILES="libqpe libqtaux libopie* libmailwrapper opie*"

REWR=`readlink -m $0`
REWR="python `dirname $REWR`/opie_checksum_rewrite.py"

for i in $FILES ; do
	for j in $i/*_$2.bb ; do
		if [ -f $j ] ; then
			echo $j
			$REWR $j $1
			if [ $? -ne 0 ] ; then
				echo "Exiting due to error"
				exit 1
			fi
		fi
	done
done