export LC_ALL=cs_CZ
for a in bp dp phd ; do
- rm -rf vzor-$a{,-win,-iso}{,.zip}
+ rm -rf vzor-$a{,.zip}
git archive --prefix=vzor-$a/ HEAD | tar xf -
(
cd vzor-$a
rm -rf mkdist upload uprava slides TODO
+ (
+ date +'%Y-%m-%d'
+ echo -n 'Git commit: '
+ git rev-parse HEAD
+ ) >VERSION
)
done
done
for a in bp dp phd ; do
- # 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 utf-8..windows-1250 $c
- done
- sed -i 's/\[utf8]/[cp1250]/g' vzor-$a-win/{cs/prace.tex,en/thesis.tex}
- zip -r vzor-$a-win.zip vzor-$a-win
-
- # 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/\[utf8]/[latin2]/g' vzor-$a-iso/{cs/prace.tex,en/thesis.tex}
- zip -r vzor-$a-iso.zip vzor-$a-iso
done