diff options
author | Ole Troan <ot@cisco.com> | 2017-06-08 10:29:38 +0200 |
---|---|---|
committer | Ole Troan <ot@cisco.com> | 2017-06-16 22:40:16 +0200 |
commit | fc69a971162add81ba768026f2d3deef21f925b5 (patch) | |
tree | 0edd88efffd891fcf96f9e8e11f2d498660e3b40 /extras/scripts/lf-release.sh | |
parent | 2fe427dfb091805a4512622d39a594167d89d745 (diff) |
Release: Script to generate LF release template.v17.04.2
Change-Id: I88d46c71dffd15e31ce8852af224a4f95a76b1ab
Signed-off-by: Ole Troan <ot@cisco.com>
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 |