Skip to content
Snippets Groups Projects
build.sh 374 B
Newer Older
  • Learn to ignore specific revisions
  • 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"
    
    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=${revision} -a revdate=${commit_date} -o angelguide_en.pdf guide.adoc
    asciidoctor-pdf -a revnumber=${revision} -a revdate=${commit_date} -o angelguide_de.pdf -a lang=de guide.adoc