summaryrefslogtreecommitdiff
path: root/RELEASE.md
blob: 297d6fcdbe975071e3daef1f55d27c5a6cb8976a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
As this plugin is trivial there are no proper releases, and thus no real
release numbers.

For the purpose of publishing the script to [vimorg][] the release number is
simply the sequential number of the commit of which the uploaded archive was
generated from. The process is as follows:

    _base='https://git.netizen.se'
    _repo='vim-ipxe'
    _hash=$( git ls-remote "$_base/$_repo" HEAD | cut -c1-7 )
    _c_no=$( git log --oneline "$_hash" | wc -l )
    _date=$( date '+%Y, %B %d' )
    _name="${_repo%-main}"; _name="${_name#vim-}"
    wget "$_base/$_repo/snapshot/$_repo-main.zip"
    7zz rn "$_repo-main.zip" "$_repo-main" "$_name"
    mv "$_repo-main.zip" "$_name-$_c_no.zip"
    echo "Export of commit $_c_no ($_hash) from $_base/$_repo. $_date." \
        > "snapshot-$_hash.txt"
    7zz a "$_name-$_c_no.zip" "snapshot-$_hash.txt"
    unset _base _repo _name _hash _init _c_no _date

[vimorg]: https://www.vim.org/scripts/