A very faithful BibTeX parser.
bartleby-x.y.z-standalone.jar
java
installed (java -version
should print out your version)java -jar bartleby-*.jar --help
, which will print out a help message describing all command line functionality.java -jar bartleby-*.jar cat my.bib their.bib
will read each of my.bib
and their.bib
and print the formatted BibTeX to stdout
in that order.lein bin
cp $(find target -type f -perm +111) /usr/local/bin/bart
Reformat a single .bib file, in-place:
bart cat <research.bib | sponge research.bib
Delete .bib file entries not used in LaTeX document:
bart select {paper.aux,research.bib} | sponge research.bib
bibexport
export.bst
style file to render BibTeX natively.export.bst
) are deleted.aux
fileexport.bst
file):
I've also compiled my own guide / reference / notes for the parsatron
library.
Run the following to exclude dev/test from cloverage's report:
lein cloverage --ns-exclude-regex user
Update the version manually in project.clj
and README.md
, commit those changes, and push.
Then add a tag and push:
tag=v$(lein pprint :version | tr -d \")
git tag $tag
git push --tags
Finally, deploy to Clojars:
# export GPG_TTY=$(tty) # uncomment if gpg fails with "Inappropriate ioctl"
lein deploy
:release-tasks
and use lein release :major / :minor / :patch
This uses github-release (go get github.com/aktau/github-release
),
which expects the environment variables GITHUB_USER
and GITHUB_TOKEN
to be set.
Build the normal jar and uber(standalone)jar:
lein uberjar
Create a GitHub "release":
# set tag if you lost it from earlier:
#tag=$(git tag --sort=committerdate | tail -1)
# or:
#tag=$(git describe --abbrev=0 --tags)
github-release release -r bartleby -t $tag
Upload the built files:
ver=$(lein pprint :version | tr -d \")
github-release upload -r bartleby -t $tag -f target/bartleby-$ver.jar -n bartleby-$ver.jar
github-release upload -r bartleby -t $tag -f target/bartleby-$ver-standalone.jar -n bartleby-$ver-standalone.jar
(You can check the current tags / releases available on GitHub at any time with: github-release info -r bartleby
)
Create a fresh clone from the gh-pages
branch:
rev=$(git rev-parse --short master)
repo=${TMPDIR-/tmp/}bartleby-gh-pages
git clone git@github.com:chbrown/bartleby.git -b gh-pages $repo
Now, back in this repo on the master
branch, generate the documentation directly into that clone:
lein update-in :codox assoc :output-path \"$repo\" -- codox
Then go to that repo's directory, commit the changes with a message pointing to the current commit on master
, and push:
cd $repo
git add .
git commit -m "Sync documentation with master @ $rev"
git push
Copyright © 2016-2017 Christopher Brown. MIT Licensed.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close