summaryrefslogtreecommitdiffstats
path: root/extras/scripts/lf-release.sh
blob: 4f26fc8e2ae342cdb7eb2e3e0a782b61c1af08ac (plain)
1
2
3
4
5
6
7
8
9
10
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