Skip to content

Commit cb307de

Browse files
authored
distro UPDATE read version form CMakeLists.txt (#1760)
1 parent 4f0d364 commit cb307de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distro/scripts/make-archive.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# create archive from current source using git
33

4-
VERSION=$(git log --oneline -n1 --grep="^VERSION" | rev | cut -d' ' -f1 | rev)
4+
VERSION=$(grep set\(NP2SRV_VERSION CMakeLists.txt | cut -d ' ' -f 2 | tr -d ')')
55

66
NAMEVER=netopeer2-$VERSION
77
ARCHIVE=$NAMEVER.tar.gz

0 commit comments

Comments
 (0)