Skip to content

Commit

Permalink
Replace lsb_release with /etc/os-release
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHargrave committed Sep 8, 2017
1 parent 2b5ca5c commit a614bcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packaging/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ if [ ! -f $LIB_FILE ]; then
exit 1
fi

_SUBSCRIPT=$(git describe --always --tag)
if which lsb_release 2>&1 >/dev/null; then
_SUBSCRIPT=$_SUBSCRIPT"_"$(lsb_release -si)-$(lsb_release -sc)
fi

_DIST_NAME=$(perl -n -e'/PRETTY_NAME="(.+)"$/; print $1 =~ s/[\s]/_/gr =~ s/\//-/gr;' < /etc/os-release)

_SUBSCRIPT="$(git describe --always --tag)_$_DIST_NAME"
STAGE_DIR_NAME=blt4l_$_SUBSCRIPT
STAGE_DIR=$BUILD_DIR/$STAGE_DIR_NAME

Expand Down

0 comments on commit a614bcf

Please sign in to comment.