linuxdebug/init/build-version
Ulrich Bessoh 872f2f0714 no changes
2024-07-09 16:52:29 +02:00

11 lines
177 B
Bash
Executable File

#!/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}