Skip to content

Commit b53c3e6

Browse files
committed
And yet more tweaking
1 parent 517d4a4 commit b53c3e6

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

admin/release

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ branch="release-$version$qualifier"
4545
echo -e "${BOLD}Creating $which $branch to $action ${NORMAL}"
4646

4747
git checkout develop
48-
git branch -d $branch # remove the branch if there
48+
git branch -d $branch &>/dev/null # remove the branch if there
4949
git checkout -b $branch
5050
composer update
5151

@@ -96,12 +96,15 @@ echo -e "${BOLD}Generate the user guide${NORMAL}"
9696

9797
cd user_guide_src
9898

99-
# make the UG & embed it in the project root
99+
# make the UG
100100
rm -rf build/*
101101
make html
102+
make epub
102103

103104
cd ..
104105

106+
mv user_guide_src/build/html /docs
107+
105108
#---------------------------------------------------
106109
# And finally, get ready for merging
107110
git add .
@@ -118,18 +121,11 @@ for f in $release_empty; do
118121
mkdir build/$f
119122
done
120123

121-
zip -r v${version}${qualifier}.zip dist/
122-
tar -zcvf v${version}${qualifier}.tar.gz dist/
123-
rm -rf dist/*
124-
mv *.zip dist/
125-
mv *.tar.gz dist/
126-
127-
# Can't forget the epub
128-
cd user_guide_src
129-
make epub
130-
cd ..
124+
# add the docs
131125
mv user_guide_src/build/epub/CodeIgniter4.epub dist/CodeIgniter-${version}${qualifier}.epub
132-
mv user_guide_src/build/html /dist/docs
126+
127+
zip -r dist/v${version}${qualifier}.zip build/
128+
tar -zcvf dist/v${version}${qualifier}.tar.gz build/
133129

134130
#---------------------------------------------------
135131
# Done for now

0 commit comments

Comments
 (0)