1 |
2012/8/25 Alexandre Rostovtsev <tetromino@g.o>: |
2 |
Hi man, |
3 |
|
4 |
*snip* |
5 |
> |
6 |
> case "${EAPI:-0}" in |
7 |
> 0|1|2) |
8 |
> die "EAPI=${EAPI} is not supported" |
9 |
> ;; |
10 |
> *) |
11 |
> EXPORT_FUNCTIONS pkg_setup |
12 |
> ;; |
13 |
> esac |
14 |
|
15 |
Any reson for not supporting ALL known eapis? |
16 |
|
17 |
*snip* |
18 |
> if [[ -z "${VALA_API_VERSION}" ]]; then |
19 |
> die "VALA_API_VERSION not set" |
20 |
> fi |
21 |
You can use the && instead of conditional as you have longer lines in |
22 |
the file anyway |
23 |
|
24 |
*snip* |
25 |
> if ! [[ -d "${T}/pkgconfig" ]]; then |
26 |
> mkdir "${T}/pkgconfig" || die "mkdir failed" |
27 |
> fi |
28 |
Same as above |
29 |
|
30 |
*snip* |
31 |
> local p |
32 |
You should put the var defs on the top, I know this aint ansi C but i |
33 |
found that we tend to loose the variable declarations in long run |
34 |
otherwise. |
35 |
|
36 |
Cheers |
37 |
|
38 |
Tom |