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 408c5ad commit 4b05cbeCopy full SHA for 4b05cbe
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 \(LIBNETCONF2_M.*_VERSION CMakeLists.txt | sed 'N; N; s/[[:print:]]*[[:blank:]]\([[:digit:]]\+\)[[:print:]]/\1/g; s/\n/./g')
5
6
NAMEVER=libnetconf2-$VERSION
7
ARCHIVE=$NAMEVER.tar.gz
0 commit comments