1 #!/bin/sh 1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0-only 2 # SPDX-License-Identifier: GPL-2.0-only 3 3 4 prev_ver=$(cat .version 2>/dev/null) && 4 prev_ver=$(cat .version 2>/dev/null) && 5 ver=$(expr ${prev_ver} + 1 2>/dev/null) || 5 ver=$(expr ${prev_ver} + 1 2>/dev/null) || 6 ver=1 6 ver=1 7 7 8 echo ${ver} > .version 8 echo ${ver} > .version 9 9 10 echo ${ver} 10 echo ${ver}
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.