]> git.phdru.name Git - bookmarks_db.git/commitdiff
Build: Add `devscripts`
authorOleg Broytman <phd@phdru.name>
Fri, 2 Aug 2024 10:44:15 +0000 (13:44 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 2 Aug 2024 10:46:11 +0000 (13:46 +0300)
devscripts/README.html [new file with mode: 0644]
devscripts/get-commit-message.vim [new file with mode: 0644]
devscripts/mk-git-aliases [new file with mode: 0755]

diff --git a/devscripts/README.html b/devscripts/README.html
new file mode 100644 (file)
index 0000000..5e31e8d
--- /dev/null
@@ -0,0 +1,3 @@
+<a href="https://phdru.name/Software/Python/#bookmarks_db">Bookmarks database
+and Internet robot</a> - a set of programs I use to manipulate my
+<A HREF="https://phdru.name/Bookmarks/">bookmarks</A>.
diff --git a/devscripts/get-commit-message.vim b/devscripts/get-commit-message.vim
new file mode 100644 (file)
index 0000000..edb8658
--- /dev/null
@@ -0,0 +1,9 @@
+set fileencoding=utf-8
+edit doc/ChangeLog
+normal 1G3yy
+buffer 1
+normal 1GPf ;Da:
+.
+normal JJ
+s/\.$//
+update
diff --git a/devscripts/mk-git-aliases b/devscripts/mk-git-aliases
new file mode 100755 (executable)
index 0000000..1891c89
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+git config --local alias.commit-with-message \
+   "!GIT_EDITOR='vim -c \"source devscripts/get-commit-message.vim\"' \
+   exec git commit -v"
+
+exec git config --local alias.tag-with-message \
+   "!GIT_EDITOR='vim -c \"source devscripts/get-commit-message.vim\"' \
+   exec git tag -s \`python setup.py --version\`"