#! /bin/bash

script_path=`dirname $0`
pushd $script_path

#### Release notes ####
pushd releasenotes
rm -rf _build
./makelatexpdf.sh
cp _build/latex/Cambricon*.pdf ../
cp _build/megatron-lm_release_notes_html.zip ../
popd

#### User guide ####
pushd user_guide
rm -rf _build
./makelatexpdf.sh
cp _build/latex/Cambricon*.pdf ../
cp _build/megatron-lm_user_guide_html.zip ../

popd

popd
