|
|
|
|
154
|
local commit # commit indicator (CURRENT_BRANCH.gHASH)
|
154
|
local commit # commit indicator (CURRENT_BRANCH.gHASH)
|
155
|
local dirty # 0 if dirty, 1 if clean
|
155
|
local dirty # 0 if dirty, 1 if clean
|
156
|
local suffix # version suffix
|
156
|
local suffix # version suffix
|
|
|
157
|
+ local_get semver && return 0
|
157
|
version=$(ini 1value project:version)
|
158
|
version=$(ini 1value project:version)
|
158
|
prerl=$(ini 1value project:prerl)
|
159
|
prerl=$(ini 1value project:prerl)
|
159
|
grep ":" <<<"$prerl" \
|
160
|
grep ":" <<<"$prerl" \
|
|
|
|
|
178
|
test -n "$prerl" && suffix="-$prerl$suffix"
|
179
|
test -n "$prerl" && suffix="-$prerl$suffix"
|
179
|
version="$version$suffix"
|
180
|
version="$version$suffix"
|
180
|
fi
|
181
|
fi
|
|
|
182
|
+ local_putb semver <<<"$version"
|
181
|
echo "$version"
|
183
|
echo "$version"
|
182
|
}
|
184
|
}
|