forked from codeigniter4/CodeIgniter4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease-userguide
More file actions
29 lines (22 loc) · 765 Bytes
/
Copy pathrelease-userguide
File metadata and controls
29 lines (22 loc) · 765 Bytes
1
2
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
29
#!/bin/bash
## Build user guide distributable
# Setup variables
. admin/release-config
TARGET=dist/userguide
cd $TARGET
git checkout $branch
#---------------------------------------------------
echo -e "${BOLD}Build the user guide distributable${NORMAL}"
cp -rf ${CI_DIR}/user_guide_src/build/html/* docs
cp -rf ${CI_DIR}/user_guide_src/build/epub/CodeIgniter4.epub ./CodeIgniter${RELEASE}.epub
#---------------------------------------------------
# And finally, get ready for merging
echo -e "${BOLD}Assemble the pieces...${NORMAL}"
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}"