blob: f4c3779059a67f55a38f77d31364b2f4b868facf (
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
36
37
|
#!/bin/bash -e
clean()
{
rm -rf $SRCDIR/*.zip
rm -rf $SRCDIR/*.tar.gz
}
build()
{
echo "done"
}
install()
{
pkgname_and_platform_list=`awk 'BEGIN{RS="\n\n"; FS="\n"} /Package:/{for(i=1;i<NF;i++){if($i ~ /^OS:/){print $1,$i}}}' ${SRCDIR}/package/pkginfo.manifest | tr ' ' '@'`
for pkgname_and_platform in ${pkgname_and_platform_list}
do
echo "=========================================INSTALL============================================"
pkgname_and_platform=`echo $pkgname_and_platform | tr '@' ' '`
package_name=`echo ${pkgname_and_platform} | cut -f1 -d " " | cut -f2 -d ":"`
platform=`echo ${pkgname_and_platform} | cut -f2 -d " " | cut -f2 -d ":"`
echo "pkgname_and_platform : ${pkgname_and_platform}"
if [ "x${TARGET_OS}" = "x${platform}" ]
then
mkdir -p ${SRCDIR}/package/${package_name}.package.${platform}/data
else
echo ""
fi
done
}
[ "$1" = "clean" ] && clean
[ "$1" = "build" ] && build
[ "$1" = "install" ] && install
|