xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit 64adf568fb9fdbae9a1be88cea80c4d713a52792

Add "bump" action to scripts/release
It is meant to be used after a regular release to distinguish
development versions from the latest release.
Author: xaizek
Author date (UTC): 2025-05-24 15:51
Committer name: xaizek
Committer date (UTC): 2025-05-24 15:51
Parent(s): f24d42099b0f06ef907e017a53f86b81575f4d3a
Signing key: 99DC5E4DB05F6BE2
Tree: ea8963402b774277a56b31055264bb7591ae9fe4
File Lines added Lines deleted
scripts/release 12 8
File scripts/release changed (mode: 100755) (index ce0fcf37e..d3e920997)
4 4 # * VIFM_DATE_OVERRIDE -- date to use instead of "now" # * VIFM_DATE_OVERRIDE -- date to use instead of "now"
5 5
6 6 if [ "$#" -lt "1" ] || [ "$#" -gt "2" ]; then if [ "$#" -lt "1" ] || [ "$#" -gt "2" ]; then
7 echo "Usage: $0 version [all|update|commit|archive]"
7 echo "Usage: $0 version [all|bump|update|commit|archive]"
8 8 exit 1 exit 1
9 9 fi fi
10 10
 
... ... if [ "$OS" = Windows_NT ]; then
51 51 fi fi
52 52 fi fi
53 53
54 if [ "$target" = all ] || [ "$target" = update ]; then
54 if [ "$target" = all ] || [ "$target" = update ] || [ "$target" = bump ]; then
55 55 echo "Updating version number..." echo "Updating version number..."
56 56
57 # update version in ChangeLogs
58 sed -i "s/to current\$/to $ver ($(date '+%Y-%m-%d'))/" \
59 ChangeLog ChangeLog.LuaAPI
57 if [ "$target" != bump ]; then
58 # update version in ChangeLogs
59 sed -i "s/to current\$/to $ver ($(date '+%Y-%m-%d'))/" \
60 ChangeLog ChangeLog.LuaAPI
61 fi
60 62
61 63 # update version in configure script # update version in configure script
62 64 sed -i "/AC_INIT(/s/,\\[[^,]\\+/,[$ver]/" configure.ac sed -i "/AC_INIT(/s/,\\[[^,]\\+/,[$ver]/" configure.ac
 
... ... if [ "$target" = all ] || [ "$target" = update ]; then
103 105 # update man pages # update man pages
104 106 sed -i "1s/\"[^\"]\\+\" \"[^\"]\\+\"\$/\"$(date '+%d %B %Y')\" \"vifm $ver\"/" data/man/*.1 sed -i "1s/\"[^\"]\\+\" \"[^\"]\\+\"\$/\"$(date '+%d %B %Y')\" \"vifm $ver\"/" data/man/*.1
105 107
106 # update first header in the NEWS file
107 sed -i -e "1s/.*/$(date '+%d %B %Y')/" \
108 -e "2{s/.*/$(date '+%d %B %Y')/;s/./=/g}" NEWS
108 if [ "$target" != bump ]; then
109 # update first header in the NEWS file
110 sed -i -e "1s/.*/$(date '+%d %B %Y')/" \
111 -e "2{s/.*/$(date '+%d %B %Y')/;s/./=/g}" NEWS
112 fi
109 113 fi fi
110 114
111 115 if [ "$target" = all ] || [ "$target" = commit ]; then if [ "$target" = all ] || [ "$target" = commit ]; then
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master