diff --git a/mkdist b/mkdist index 5e50278..5f9ea95 100755 --- a/mkdist +++ b/mkdist @@ -3,9 +3,9 @@ set -e export LC_ALL=cs_CZ for a in bp dp phd ; do - rm -rf vzor-$a{,-win,-utf} + rm -rf vzor-$a{,-win,-iso} git archive --prefix=vzor-$a/ HEAD | tar xf - - rm -rf vzor-$a/{mkdist,uprava,slides} + rm -rf vzor-$a/{mkdist,uprava,slides,TODO} done # BP @@ -58,22 +58,22 @@ done ) for a in bp dp phd ; do - # Basic version - zip -r vzor-$a-iso.zip vzor-$a + # Basic version (UTF-8) + zip -r vzor-$a.zip vzor-$a # CP1250 version cp -a vzor-$a vzor-$a-win for c in vzor-$a-win/{*/*.tex,README} ; do - recode iso-8859-2..windows-1250 $c + recode utf-8..windows-1250 $c done - sed -i 's/\[latin2]/[cp1250]/g' vzor-$a-win/{cs/prace.tex,en/thesis.tex} + sed -i 's/\[utf8]/[cp1250]/g' vzor-$a-win/{cs/prace.tex,en/thesis.tex} zip -r vzor-$a-win.zip vzor-$a-win - # UTF-8 version - cp -a vzor-$a vzor-$a-utf - for c in vzor-$a-utf/{*/*.tex,README} ; do - recode iso-8859-2..utf-8 $c + # ISO-8859-2 version + cp -a vzor-$a vzor-$a-iso + for c in vzor-$a-iso/{*/*.tex,README} ; do + recode utf-8..iso-8859-2 $c done - sed -i 's/\[latin2]/[utf8]/g' vzor-$a-utf/{cs/prace.tex,en/thesis.tex} - zip -r vzor-$a-utf.zip vzor-$a-utf + sed -i 's/\[utf8]/[latin2]/g' vzor-$a-iso/{cs/prace.tex,en/thesis.tex} + zip -r vzor-$a-iso.zip vzor-$a-iso done