Skip to content

Instantly share code, notes, and snippets.

@eerohele
Created September 11, 2015 11:47
Show Gist options
  • Save eerohele/60f891131506c2eabcda to your computer and use it in GitHub Desktop.
Save eerohele/60f891131506c2eabcda to your computer and use it in GitHub Desktop.
Publish DITA content with DITA-OT and GNU Parallel
# Publish every .ditamap file in a directory in parallel.
# Use a DITAVAL file with the same basename as the .ditamap file for filtering.
find "$input_dir" -name "*.ditamap" | \
parallel -I{} bash dita -i "{}" -filter "$input_dir/{/.}.ditaval" -f pdf -o "$output_dir"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment