Skip to content

Instantly share code, notes, and snippets.

@Telmo
Forked from avdi/gist:6131832
Created August 3, 2013 02:37
Show Gist options
  • Save Telmo/6144889 to your computer and use it in GitHub Desktop.
Save Telmo/6144889 to your computer and use it in GitHub Desktop.
Open3.pipeline_r(
%W[xmllint --xinclude --xmlout #{spine_file}],
# In order to clean up extraneous namespace declarations we need a second
# xmllint process
%W[xmllint --format --nsclean --xmlout -]) do |output, wait_thr|
open(codex_file, 'w') do |f|
IO.copy_stream(output, f)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment