Skip to content

Commit deae604

Browse files
authored
distro UPDATE read version from CMakeLists.txt (#2427)
1 parent af222e0 commit deae604

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 \(LIBYANG_M.*_VERSION CMakeLists.txt | tr -d '[:alpha:] _()' | sed 'N; N; s/\n/./g')
55

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

0 commit comments

Comments
 (0)