Last active
January 16, 2021 10:48
-
-
Save ochaton/9e9da11ff2a9740985d1a261a32ab7bb to your computer and use it in GitHub Desktop.
Rebuilds all major tarantool versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir "$HOME/tarantool"; | |
git clone --recurse-submodules https://github.com/tarantool/tarantool.git && cd tarantool; | |
for tag in $(git tag | sort | perl -lnE '$h{$mj}=$_ if (($mj) = $_=~m{^(1\.10|2\.\d+)\.\d+$});}{say join " ", sort keys %h'); do | |
echo "================== Installing $tag ================"; | |
git clean -xdf .; | |
git checkout "$tag" \ | |
&& git clean -xdf . \ | |
&& git pull origin "$tag" \ | |
&& git reset --hard "origin/$tag" \ | |
&& git submodule update --init --recursive --force \ | |
&& cmake . -DCMAKE_C_FLAGS="-Wno-sizeof-array-div -Wno-missing-exception-spec" -DCMAKE_CXX_FLAGS="-Wno-missing-exception-spec" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="$HOME/tarantool/$(git describe --tags --abbrev=0)" \ | |
&& make -j install; | |
echo "================== Installed $tag ================"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment