Skip to content

Commit 4b05cbe

Browse files
authored
distro UPDATE read version form CMakeLists.txt (#555)
1 parent 408c5ad commit 4b05cbe

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 \(LIBNETCONF2_M.*_VERSION CMakeLists.txt | sed 'N; N; s/[[:print:]]*[[:blank:]]\([[:digit:]]\+\)[[:print:]]/\1/g; s/\n/./g')
55

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

0 commit comments

Comments
 (0)