1 |
On Sat, Nov 28, 2015 at 10:14:39PM +0100, Ulrich Mueller wrote: |
2 |
> Questions: |
3 |
> 1. Will these three functions be sufficient, or have we overlooked |
4 |
> anything important? |
5 |
|
6 |
Can we also have get_version_component_count() in there? |
7 |
|
8 |
I have a package that likes to change the number of parts so I need to |
9 |
know how many parts before I can split it up. |
10 |
|
11 |
Basically this: |
12 |
if [[ $(get_version_component_count) -eq 6 ]]; then |
13 |
STUDIO_V=$(get_version_component_range 1-4) |
14 |
BUILD_V=$(get_version_component_range 5-6) |
15 |
else |
16 |
STUDIO_V=$(get_version_component_range 1-3) |
17 |
BUILD_V=$(get_version_component_range 4-5) |
18 |
fi |
19 |
|
20 |
-- Jason |