make_build.sh 514 Bytes
Newer Older
Florent Chehab's avatar
Florent Chehab committed
1 2
rm -rf build;
mkdir build; 
Florent Chehab's avatar
Florent Chehab committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

cp lettre-UTC.cls ./build
cp lettre-UTC-ex.tex ./build
cp LICENSE ./build
cp README.md ./build
cp -r __EXTERNAL_ASSETS__ ./build
cp .gitignore ./build 
cp .latexmkrc ./build 


# copy for building
cp -rf ./build ./build_tmp

# try to build
cd ./build_tmp
latexmk -pdf lettre-UTC-ex.tex

# if successfull
cd ../
cp build_tmp/lettre-UTC-ex.pdf ./

rm -rf ./build_tmp
zip -r latex-lettre-UTC.zip ./build

# generate preview
convert -density 150 lettre-UTC-ex.pdf -quality 90 lettre-ex.png