diff options
Diffstat (limited to 'extras/scripts/lf-release.sh')
-rwxr-xr-x | extras/scripts/lf-release.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extras/scripts/lf-release.sh b/extras/scripts/lf-release.sh new file mode 100755 index 00000000000..4f26fc8e2ae --- /dev/null +++ b/extras/scripts/lf-release.sh @@ -0,0 +1,11 @@ +#!/bin/bash +VPP_DIR=`dirname $0` +VER=$($VPP_DIR/version) +MAJOR=$(echo $VER | sed -r 's/(.{5}).*/\1/') +MAJOR_NODOT=$(echo $MAJOR | sed -e "s/\.//") +FULL=$(echo $VER | sed -e "s/-release//") + +sed -e "s/\${major_release_nodot}/$MAJOR_NODOT/g" \ + -e "s/\${major_release}/$MAJOR/g" \ + -e "s/\${full_release}/$FULL/g" \ + $VPP_DIR/lf-release.txt |