Skip to content
Snippets Groups Projects
build.sh 420 B
Newer Older
migu's avatar
migu committed
#!/bin/sh

migu's avatar
migu committed
if [[ $# -ne 1 ]]; then
migu's avatar
migu committed
	echo expected revision as option >&2
	exit 1
fi

revision="$1"
version=$(echo $revision | grep -Eo 'v[0-9.]*')
migu's avatar
migu committed
commit_date=$(git show -s --format=%ci ${revision} | cut -c1-10)
migu's avatar
migu committed

asciidoctor-pdf -a revnumber=${version} -a revdate=${commit_date} -o angelguide_en.pdf guide.adoc
asciidoctor-pdf -a revnumber=${version} -a revdate=${commit_date} -o angelguide_de.pdf -a lang=de guide.adoc