We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af222e0 commit deae604Copy full SHA for deae604
distro/scripts/make-archive.sh
@@ -1,7 +1,7 @@
1
#!/bin/bash
2
# create archive from current source using git
3
4
-VERSION=$(git log --oneline -n1 --grep="^VERSION" | rev | cut -d' ' -f1 | rev)
+VERSION=$(grep \(LIBYANG_M.*_VERSION CMakeLists.txt | tr -d '[:alpha:] _()' | sed 'N; N; s/\n/./g')
5
6
NAMEVER=libyang-$VERSION
7
ARCHIVE=$NAMEVER.tar.gz
0 commit comments