xref: /linux/scripts/build-version (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-only
3
4prev_ver=$(cat .version 2>/dev/null) &&
5ver=$(expr ${prev_ver} + 1 2>/dev/null) ||
6ver=1
7
8echo ${ver} > .version
9
10echo ${ver}
11