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