Skip to content

Commit

Permalink
Merge branch 'main' of github.com:contextgarden/not-so-short-introduc…
Browse files Browse the repository at this point in the history
…tion-to-context
  • Loading branch information
Parents authored and Parents committed Dec 29, 2022
2 parents 7faaa17 + a028820 commit 129b753
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ jobs:

- name: Download ConTeXt and Compile
run: |
WORKSPACE=`pwd`
wget -O context.zip http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip
unzip context.zip -d context
cd context/
sh install.sh >/dev/null
cd tex/texmf-linux-64/bin
CTXPATH=`pwd`
export PATH=$CTXPATH:$PATH
declare -A languages=(["cs"]="cs" ["en"]="eng" ["es"]="esp" ["fr"]="fra" ["fr2"]="fra" ["ru"]="rus" ["sr"]="srb")
export OSFONTDIR=$WORKSPACE/sr/fonts:$OSFONTDIR
echo "OSFONTDIR : $OSFONTDIR"
mtxrun --generate > /dev/null
mtxrun --script font --reload > /dev/null
for lang in "${!languages[@]}"
do
start=`date +%s`
Expand All @@ -28,10 +34,10 @@ jobs:
if [[ "$lang" == "fr" || "$lang" == "fr2" || "$lang" == "cs" ]]; then
extension="tex"
fi
echo "Screen version..."
$CTXPATH/context --mode=screen "introCTX_${tlang}.${extension}" --result="introCTX_${tlang}_s" > /dev/null
echo "Paper version..."
$CTXPATH/context "introCTX_${tlang}.${extension}" --result="introCTX_${tlang}_p" > /dev/null
echo "Screen version... avec $CTXPATH/mtxrun --mode=screen"
$CTXPATH/mtxrun --autogenerate --script context --autopdf --mode=screen "introCTX_${tlang}.${extension}" --result="introCTX_${tlang}_s" > /dev/null
echo "Paper version... avec $CTXPATH/mtxrun"
$CTXPATH/mtxrun --autogenerate --script context --autopdf "introCTX_${tlang}.${extension}" --result="introCTX_${tlang}_p" > /dev/null
end=`date +%s`
echo Execution time was `expr $end - $start` seconds.
done

0 comments on commit 129b753

Please sign in to comment.