Sign in
linux
/
linux
/
kernel
/
git
/
gregkh
/
driver-core
/
8a511e7efc5a72173f64d191f01cda236d54e27a
/
.
/
init
/
build-version
blob: 537d458150832a66501c74f7d544a9e618d9f7c1 [
file
] [
log
] [
blame
]
#!/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
}