☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
tools
/
version.sh
☽
☼
libc-top-half/musl/tools/version.sh
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
1
#!/bin/sh
2
3
if test -d .git ; then
4
if type git >/dev/null 2>&1 ; then
5
git describe --tags --match 'v[0-9]*' 2>/dev/null \
6
| sed -e 's/^v//' -e 's/-/-git-/'
7
else
8
sed 's/$/-git/' < VERSION
9
fi
10
else
11
cat VERSION
12
fi