mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
ec13e46dd1
Method inspired by the update script for `discourse` in nixpkgs.
20 lines
494 B
Bash
Executable File
20 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
|