summaryrefslogtreecommitdiff
path: root/build.sh
blob: 9632b01d642388112885f5f2c4d4a28c250e92b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -e

if (($# < 3)) || (($# > 3))
then
  (>&2 echo "Usage: $0 EFL_VERSION ARCH PACKAGE")
  exit 1
fi

if [ ! -e "./recipes/$1" ]; then (>&2 echo "no recipe for $1"); exit 1; fi
if [ ! -e "./recipes/$1/$2" ]; then (>&2 echo "no recipe for $1/$2"); exit 2; fi
if [ ! -e "./recipes/$1/$2/${3}_install.sh" ]; then (>&2 echo "no recipe for $1/$2/$3"); exit 3; fi

bash "./recipes/$1/$2/${3}_install.sh"