Skip to content

Commit b343b75

Browse files
Using simple update script again
1 parent 7b44721 commit b343b75

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

scripts/update_publications

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,5 @@
55
# `.bib` files.
66

77
source ~/.virtualenvs/playground/bin/activate
8-
python ~/Projects/bastian.rieck.me/scripts/bibtex_to_markdown.py ~/Documents/Papers.bib --blocks --level 3 -v > ../content/publications_tmp.md
8+
python ~/Projects/bastian.rieck.me/scripts/bibtex_to_markdown.py ~/Documents/Papers.bib --blocks --level 3 -v > ../content/publications.md
99
cp /tmp/*.bib ../static/research/
10-
11-
{
12-
echo "<div class=\"publications\">"
13-
echo ""
14-
cat ../content/publications_tmp.md
15-
echo ""
16-
echo "</div>"
17-
} > ../content/publications.md
18-
19-
awk '
20-
BEGIN { in_block = 0 }
21-
/<!-- BEGIN:PUBLICATIONS -->/ {
22-
print
23-
while ((getline line < "../content/publications.md") > 0) print line
24-
in_block = 1
25-
next
26-
}
27-
/<!-- END:INSERT -->/ { in_block = 0 }
28-
!in_block
29-
' ../content/research.md > ../content/research_tmp.md
30-
31-
mv ../content/research_tmp.md ../content/research.md

0 commit comments

Comments
 (0)