summaryrefslogtreecommitdiff
path: root/RELEASE.md
diff options
context:
space:
mode:
Diffstat (limited to 'RELEASE.md')
-rw-r--r--RELEASE.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000..1892d6e
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,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/