Skip to content

Instantly share code, notes, and snippets.

@Hanaasagi
Created July 3, 2018 11:53
Show Gist options
  • Save Hanaasagi/806082f44de7c865b54fa5c5802f138d to your computer and use it in GitHub Desktop.
Save Hanaasagi/806082f44de7c865b54fa5c5802f138d to your computer and use it in GitHub Desktop.
VERSION=$(echo "${GIT_BRANCH:7:7}-${GIT_COMMIT:0:7}" | sed "s/\//-/g")
echo "VERSION: $VERSION"
sed "s/VERSION=[^0-9.]*\([0-9.]*\).*/VERSION=$VERSION/" Makefile.var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment