PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/get-bibs.sed

https://code.google.com/p/latex-makefile/
sed | 23 lines | 7 code | 8 blank | 8 comment | 0 complexity | 2c088b4e2a49ce5fffa2c3d4a1422e6d MD5 | raw file
 1#(##defaults(target_files="TARGET_FILES")##)
 2
 3# Parses a .aux file to find bibdata information
 4/^\\bibdata/!d
 5
 6# Remove the \bibdata{} from around the pertinent information
 7s/\\bibdata{\([^}]*\)}/\1,/
 8
 9# Ignore -blx files - they change frequently without affecting the build.
10s/[^,]\{1,\}-blx//
11
12# Collapse comma sequences
13s/,\{2,\}/,/g
14
15# Escape spaces in file names
16s/[[:space:]]/\\&/g
17
18# Change to a space-delimited list of .bib names
19s/,/.bib /g
20
21# Remove all trailing spaces
22s/ \{1,\}$//
23