Commit 3559ba09 authored by Alessandra Gorla's avatar Alessandra Gorla
Browse files

added crossref-abbrev and abbrevv

parent eddb18b5
......@@ -5,12 +5,12 @@
BIB_ABBREVIATE ?= ./bib-abbreviate.pl
# TODO: reinstate bibstring-crossrefs-abbrev.bib
all: bibstring-unabbrev.bib bibstring-abbrev.bib bibroot docs/index.html
all: bibstring-unabbrev.bib bibstring-abbrev.bib bibroot crossrefs-abbrevv.bib docs/index.html
BIBFILES := $(shell ls *.bib | grep -v bibstring-unabbrev.bib | grep -v bibstring-abbrev.bib)
clean: bibtest-aux-clean
rm -f bibstring-unabbrev.bib bibstring-abbrev.bib bibroot bibtest.tex
rm -f bibstring-unabbrev.bib bibstring-abbrev.bib bibroot bibtest.tex crossrefs-abbrev.bib crossrefs-abbrevv.bib
docs/index.html: README.md
asciidoctor $< --out-file=$@
......@@ -25,6 +25,20 @@ bibstring-abbrev.bib: bibstring-master.bib $(BIB_ABBREVIATE)
$(BIB_ABBREVIATE) -abbrev $< > $@
@chmod -w $@
crossrefs-abbrev.bib: crossrefs.bib
@rm -f $@
awk '!/address =/' $< > temp
awk '!/month =/' temp > $@
rm temp
crossrefs-abbrevv.bib: crossrefs-abbrev.bib
@rm -f $@
sed '/title =/s/Proceedings/Proc./g' $< >temp
sed '/booktitle =/s/Proceedings/Proc./g' <temp >temp1
sed 's/International/Intl./g' <temp1 >temp2
sed 's/Conference/Conf./g' < temp2 >$@
rm temp*
## TODO: write a new abbreviaton script, only for [book]titles
# bibstring-crossrefs-abbrev.bib: bibstring-crossrefs-master.bib $(BIB_ABBREVIATE)
# @rm -f $@
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment