blob: f51fe2a9115fb704b6ca9f99f9a3568f8b5bcc17 (
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
38
39
40
41
42
43
44
45
|
#!/bin/sh
set -e
main()
{
cat <<-EOF
Building packages in stage 1...
===============================
EOF
build_packages
}
log()
{
local msg i
msg="$(printf "${@}")"
printf '\n%s\n' "${msg}"
i=0
while [ ${i} -lt ${#msg} ]; do
printf '-'
i=$(($i + 1))
done
printf '\n\n'
}
build_packages()
{
local dir
cd pkg
for dir in */; do
log 'Building package %s...' "${dir%/}"
cd "${dir}"
opkbuild -bC
cd ..
done
cd ..
}
main "${@}"
|