diff options
author | Einhard Leichtfuß <alguien@respiranto.de> | 2022-04-29 23:48:11 +0200 |
---|---|---|
committer | Einhard Leichtfuß <alguien@respiranto.de> | 2022-04-29 23:48:11 +0200 |
commit | 90dc244303eac42ad37c1f3b43f4d3cbb9b91c1c (patch) | |
tree | 8b1ce86c15b0c203b741cf95b05046d894347783 /update.bash | |
parent | 02d41a2cbb899393c866c1c16cd6b0686f9cc4f1 (diff) |
Always set $_pkgver.
- And set it first. (Derive $pkgver off it.)
- Usually same as $pkgver.
Diffstat (limited to 'update.bash')
-rwxr-xr-x | update.bash | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/update.bash b/update.bash index 118aeb1..5be3658 100755 --- a/update.bash +++ b/update.bash @@ -93,18 +93,12 @@ function update replace '%LANG%' "$lang" replace '%LANG_A%' "$lang_a" replace '%LANG_B%' "$lang_b" - replace '%VER%' "$convver" + replace '%VER%' "$ver" replace '%LICENSES%' "${licenses[$lang]}" replace '%CHECKSUM%' "$checksum" replace_line '%CONTRS%' "${contrs[${lang}${ext}]}" normal - if [[ "$ver" == "$convver" ]] - then - delete_line '^_pkgver=\$\{pkgver\/\/_\/-\}$' - replace '_pkgver' 'pkgver' - fi - local rstring_base="${prepare[${lang}${ext}]}" local rstring rstring=$'\n'"$(sed -E 's/^/\t/' <<< "$rstring_base")"$'\n' |