PageRenderTime 21ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/get-inputs.sed

https://code.google.com/p/latex-makefile/
sed | 23 lines | 12 code | 1 blank | 10 comment | 0 complexity | 6171f900f3d56978f3bebab774284ac0 MD5 | raw file
  1. #(##defaults(target_files="TARGET_FILES")##)
  2. # only look at INPUT lines from the .fls file
  3. /^INPUT/!d
  4. # Remove references to the current directory, make all entries relative
  5. s!^INPUT \(\./\)\{0,1\}!!
  6. # Escape filepath spaces
  7. s/[[:space:]]/\\ /g
  8. # Depend on .tex, not on .aux
  9. s/\(.*\)\.aux$/\1.tex/
  10. # NOTE: BSD sed does not understand \|, so we have to do something more
  11. # clunky to extract suitable extensions.
  12. /\.tex$/b addtargets
  13. /\.cls$/b addtargets
  14. /\.sty$/b addtargets
  15. /\.pstex_t$/b addtargets
  16. /\.dot_t$/b addtargets
  17. d
  18. # Here we add the input targets. This involves calling path-norm, which on
  19. # cygwin systems will change the path to not contain spaces and to be
  20. # unix-style instead of C:\Windows style.
  21. :addtargets
  22. s!.*!(##target_files##): $(call path-norm,&)!