depot/third_party/nixpkgs/pkgs/applications/version-management/redmine/update.sh
Default email 7bc014aa9c Project import generated by Copybara.
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
2022-09-11 12:47:08 -03:00

19 lines
494 B
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 x86_64-linux
bundix -l