CodeIgniter4/admin/release-userguide

30 lines
765 B
Plaintext
Raw Normal View History

2018-11-28 08:40:38 -08:00
#!/bin/bash
## Build user guide distributable
# Setup variables
. admin/release-config
TARGET=dist/userguide
2018-11-29 00:36:57 -08:00
cd $TARGET
2018-11-28 21:45:38 -08:00
git checkout $branch
2018-11-28 08:40:38 -08:00
2018-11-28 21:45:38 -08:00
#---------------------------------------------------
2018-11-28 08:40:38 -08:00
echo -e "${BOLD}Build the user guide distributable${NORMAL}"
2018-11-29 00:36:57 -08:00
cp -rf ${CI_DIR}/user_guide_src/build/html/* docs
cp -rf ${CI_DIR}/user_guide_src/build/epub/CodeIgniter4.epub ./CodeIgniter${RELEASE}.epub
2018-11-28 08:40:38 -08:00
#---------------------------------------------------
# And finally, get ready for merging
2018-11-28 21:45:38 -08:00
echo -e "${BOLD}Assemble the pieces...${NORMAL}"
2018-11-28 08:40:38 -08:00
git add .
git commit -S -m "Release ${RELEASE}"
git checkout master
git merge $branch
cd $CI_DIR
#---------------------------------------------------
# Done for now
echo -e "${BOLD}Distributable user guide ready..${NORMAL}"