f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
31 lines
1 KiB
Bash
Executable file
31 lines
1 KiB
Bash
Executable file
#!/usr/bin/env nix-shell
|
|
#!nix-shell --pure -i bash -p cacert bundix bundler
|
|
|
|
# Do these steps before running this script:
|
|
# 1. Copy Gemfile from new Redmine version to this folder
|
|
# 2. Manually modify the database lines in Gemfile (diff the two files, it's obvious)
|
|
|
|
pkg_dir="$(dirname "$0")"
|
|
cd ${pkg_dir}
|
|
|
|
for file in "gemset.nix" "Gemfile.lock"; do
|
|
if [ -f ${file} ]; then
|
|
rm ${file}
|
|
fi
|
|
done
|
|
|
|
bundle lock --add-platform ruby
|
|
bundle lock --remove-platform aarch64-linux
|
|
bundle lock --remove-platform aarch64-linux-gnu
|
|
bundle lock --remove-platform aarch64-linux-musl
|
|
bundle lock --remove-platform arm-linux
|
|
bundle lock --remove-platform arm-linux-gnu
|
|
bundle lock --remove-platform arm-linux-musl
|
|
bundle lock --remove-platform arm64-darwin
|
|
bundle lock --remove-platform x86-linux
|
|
bundle lock --remove-platform x86-linux-gnu
|
|
bundle lock --remove-platform x86-linux-musl
|
|
bundle lock --remove-platform x86_64-darwin
|
|
bundle lock --remove-platform x86_64-linux-gnu
|
|
bundle lock --remove-platform x86_64-linux-musl
|
|
bundix -l
|