scripts: add merge-ini script

master
an 2019-07-27 11:53:02 -04:00
parent 19ecd9abff
commit 048ff1d0c2
1 changed files with 11 additions and 0 deletions

11
scripts/merge-ini Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env ruby
require 'inifile'
ini1 = IniFile.load ARGV[0]
ini2 = IniFile.load ARGV[1]
ini1.merge! ini2
ini1.write filename: ARGV[2], encoding: "UTF-8"
## EOF