mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
11 lines
177 B
Plaintext
11 lines
177 B
Plaintext
|
#!/bin/sh
|
||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||
|
|
||
|
prev_ver=$(cat .version 2>/dev/null) &&
|
||
|
ver=$(expr ${prev_ver} + 1 2>/dev/null) ||
|
||
|
ver=1
|
||
|
|
||
|
echo ${ver} > .version
|
||
|
|
||
|
echo ${ver}
|