projects
/
platform
/
kernel
/
linux-starfive.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge tag 'for-5.19/drivers-2022-06-02' of git://git.kernel.dk/linux-block
[platform/kernel/linux-starfive.git]
/
scripts
/
pahole-version.sh
1
#!/bin/sh
2
# SPDX-License-Identifier: GPL-2.0
3
#
4
# Usage: $ ./pahole-version.sh pahole
5
#
6
# Prints pahole's version in a 3-digit form, such as 119 for v1.19.
7
8
if [ ! -x "$(command -v "$@")" ]; then
9
echo 0
10
exit 1
11
fi
12
13
"$@" --version | sed -E 's/v([0-9]+)\.([0-9]+)/\1\2/'