diffenator.sh 590 B

1234567891011121314151617
  1. #!/bin/bash
  2. echo "This script will give you the rendering output diffs."
  3. read -p 'Before file: ' before
  4. read -p 'After file: ' after
  5. read -p 'Output directory: ' output_dir
  6. # read -p 'Threshold: ' thresh
  7. after_filename=$(basename "$after")
  8. full_path="$output_dir/${after_filename}_img"
  9. echo "Output to: $full_path"
  10. mkdir "$full_path"
  11. touch "$full_path/$after_filename".html
  12. diffenator "$before" "$after" --marks_thresh 10 --mkmks_thresh 10 --kerns_thresh 1 --glyphs_thresh 0.1 --metrics_thresh 1 -rd -r "$full_path" -html > "$full_path/$after_filename".html
  13. # mv output.html $after.html