| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f301f82 commit 4ce2ecb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,12 +24,10 @@ console.log(tag_name.replace('v', '')); | |||
| 24 | 24 | EOF | |
| 25 | 25 | )" | |
| 26 | 26 | ||
| 27 | - VERSION_HEX=$(grep "#define BROTLI_VERSION" ./deps/brotli/c/common/version.h | sed 's/.* //') | ||
| 28 | - | ||
| 29 | - major=$(( ($VERSION_HEX >> 24) & 0xff )) | ||
| 30 | - minor=$(( ($VERSION_HEX >> 12) & 0xfff )) | ||
| 31 | - patch=$(( $VERSION_HEX & 0xfff )) | ||
| 32 | - CURRENT_VERSION="${major}.${minor}.${patch}" | ||
| 27 | + CURRENT_MAJOR_VERSION=$(grep "#define BROTLI_VERSION_MAJOR" ./deps/brotli/c/common/version.h | sed -n "s/^.*MAJOR \(.*\)/\1/p") | ||
| 28 | + CURRENT_MINOR_VERSION=$(grep "#define BROTLI_VERSION_MINOR" ./deps/brotli/c/common/version.h | sed -n "s/^.*MINOR \(.*\)/\1/p") | ||
| 29 | + CURRENT_PATCH_VERSION=$(grep "#define BROTLI_VERSION_PATCH" ./deps/brotli/c/common/version.h | sed -n "s/^.*PATCH \(.*\)/\1/p") | ||
| 30 | + CURRENT_VERSION="$CURRENT_MAJOR_VERSION.$CURRENT_MINOR_VERSION.$CURRENT_PATCH_VERSION" | ||
| 33 | 31 | ||
| 34 | 32 | # This function exit with 0 if new version and current version are the same | |
| 35 | 33 | compare_dependency_version "brotli" "$NEW_VERSION" "$CURRENT_VERSION" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments