blob: 1892d6e01778ae6988754f734aa8bb1c9acf6400 (
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-preseed'
_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.zip" "snapshot-$_hash.txt"
unset _base _repo _name _hash _init _c_no _date
[vimorg]: https://www.vim.org/scripts/
|