repo.or.cz
/
drm
/
drm-misc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git]
/
scripts
/
build-version
blob
537d458150832a66501c74f7d544a9e618d9f7c1
1
#!/bin/sh
2
# SPDX-License-Identifier: GPL-2.0-only
3
4
prev_ver
=
$
(
cat
.version
2
>/
dev
/
null
) &&
5
ver
=
$
(
expr
${prev_ver}
+
1 2
>/
dev
/
null
)
||
6
ver
=
1
7
8
echo
${ver}
>
.version
9
10
echo
${ver}