Skip to content

Commit f0ff1e4

Browse files
committed
Tweaks from testing
1 parent 3bd01fa commit f0ff1e4

File tree

9 files changed

+40
-52
lines changed

9 files changed

+40
-52
lines changed

admin/README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,17 @@ scripts used by the release manager:
6262
moving or ignoring stuff, distinguishing release from development.
6363
If successful, it will update the `config` file, with the version number
6464
in it, and it will run the related scripts following, to revise
65-
the release distributions.
65+
the release distributions.
66+
Usage: `admin/release version qualifier`
6667
- **release-framework** builds the distributable framework repo.
6768
It could be used on its own, but is normally part of `release`.
6869
- **release-appstarter** builds the distributable appstarter repo.
6970
It could be used on its own, but is normally part of `release`.
7071
- **release-userguide** builds the distributable userguide repo.
7172
It could be used on its own, but is normally part of `release`.
7273
- **release-deploy** pushes the release changes to the appropriate github
73-
repositories. Tag & create releases on github. This is not easily reversible!
74+
repositories. Tag & create releases on github. This is not easily reversible!
75+
Usage: `admin/release-deploy version qualifier`
7476
- **release-revert** can be used to restore your repositories to the state they
7577
were in before you started a release. **IF** you haven't deployed.
7678
This is in case you decide not to proceed with the release, for any reason.

admin/release

+15-14
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ sed -i "/release =/s/'.*'/'${RELEASE}'/" user_guide_src/source/conf.py
5353
# version & date in user_guide_src/source/index.rst
5454
sed -i "/|release|/s/|.*|/${RELEASE}/" user_guide_src/source/changelogs/index.rst
5555
sed -i "/Release Date/s/Not Released/$(date +'%B %d, %Y')/" user_guide_src/source/changelogs/index.rst
56+
sed -i "/|version|/s/|version|/${RELEASE}/" user_guide_src/source/changelogs/index.rst
5657

5758
# version & date in user_guide_src/source/next.rst
5859
sed -i "/|release|/s/|.*|/${RELEASE}/" user_guide_src/source/changelogs/next.rst
@@ -106,24 +107,24 @@ make epub
106107
cd ${CI_DIR}
107108

108109
# add changelog preamble
109-
sed '5 i Version |version|
110-
====================================================
111-
112-
Release Date: Not Released
113-
114-
**Next release of CodeIgniter4**
115-
116-
117-
:doc:`See all the changes. </changelogs/next>`
118-
119-
' ${TARGET}/user_guide_src/changelogs/index.rst
110+
file=user_guide_src/source/changelogs/index.rst
111+
sed -i "4 a Version |version|" $file
112+
sed -i "5 a ====================================================" $file
113+
sed -i "6 G" $file
114+
sed -i "7 a Release Date: Not Released" $file
115+
sed -i "8 G" $file
116+
sed -i "9 a **Next release of CodeIgniter4**" $file
117+
sed -i "10 G" $file
118+
sed -i "11 G" $file
119+
sed -i "12 a :doc:\`See all the changes. </changelogs/next>\`" $file
120+
sed -i "13 G" $file
120121

121122
#---------------------------------------------------
122123
# Build the distributables
123124

124-
. release-framework
125-
. release-userguide
126-
. release-appstarter
125+
. admin/release-framework
126+
. admin/release-userguide
127+
. admin/release-appstarter
127128

128129
#---------------------------------------------------
129130
# Done for now

admin/release-appstarter

100755100644
+6-9
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,30 @@
55
# Setup variables
66
. admin/release-config
77
TARGET=dist/appstarter
8+
cd $TARGET
89
git checkout $branch
910

1011
#---------------------------------------------------
1112
echo -e "${BOLD}Build the framework distributable${NORMAL}"
1213

1314
echo -e "${BOLD}Copy the main files/folders...${NORMAL}"
1415
releasable='application public writable README.md contributing.md env license.txt spark'
15-
for fff in $releasable
16-
if [ -d $fff ]; then
17-
rm -rf ${TARGET}/$fff
18-
cp -rf $fff ${TARGET}/
19-
else
20-
rm ${TARGET}/$fff
21-
cp -f $fff ${TARGET}/
16+
for fff in $releasable ; do
17+
if [ -d "$fff" ] ; then
18+
rm -rf $fff
2219
fi
20+
cp -rf ${CI_DIR}/$fff .
2321
done
2422

2523
echo -e "${BOLD}Override as needed...${NORMAL}"
26-
cp -rf admin/starter/* ${TARGET}/
24+
cp -rf ${CI_DIR}/admin/starter/* .
2725

2826
echo -e "${BOLD}Fix paths...${NORMAL}"
2927
sed -i "/public $systemDirectory = 'system';/s/'system'/'vendor/codeigniter4/framework/system'/" application/Config/Paths.php
3028

3129
#---------------------------------------------------
3230
# And finally, get ready for merging
3331
echo -e "${BOLD}Assemble the pieces...${NORMAL}"
34-
cd $TARGET
3532
git add .
3633
git commit -S -m "Release ${RELEASE}"
3734
git checkout master

admin/release-config

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ if [ -z "$CI_ORG" ]; then
2323
RELEASE=$version$qualifier
2424
branch="release-$RELEASE"
2525

26-
fi
26+
fi

admin/release-deploy

-10
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@
55
echo -e "${BOLD}${COLOR}CodeIgniter4 release deployment${NORMAL}"
66
echo '-------------------------------'
77

8-
# Check for politeness, to avoid inadvertent deployment
9-
if [ $# -lt 2 ]; then
10-
echo "You forgot the magic word"
11-
exit 1
12-
fi
13-
if [ $1 != 'please' ]; then
14-
echo "What do you say?"
15-
exit 1
16-
fi
17-
188
. admin/release-config
199

2010
echo -e "${BOLD}Merge release into master${NORMAL}"

admin/release-framework

100755100644
+8-11
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,31 @@
55
# Setup variables
66
. admin/release-config
77
TARGET=dist/framework
8+
cd $TARGET
89
git checkout $branch
910

1011
#---------------------------------------------------
1112
echo -e "${BOLD}Build the framework distributable${NORMAL}"
1213

1314
echo -e "${BOLD}Copy the main files/folders...${NORMAL}"
1415
releasable='application docs public system writable README.md composer.json contributing.md env license.txt spark'
15-
for fff in $releasable
16-
if [ -d $fff ]; then
17-
rm -rf ${TARGET}/$fff
18-
cp -rf $fff ${TARGET}/
19-
else
20-
rm ${TARGET}/$fff
21-
cp -f $fff ${TARGET}/
16+
for fff in $releasable ; do
17+
if [ -d "$fff" ] ; then
18+
rm -rf $fff
2219
fi
20+
cp -rf ${CI_DIR}/$fff .
2321
done
2422

2523
echo -e "${BOLD}Override as needed...${NORMAL}"
26-
cp -rf admin/framework/* ${TARGET}/
24+
cp -rf ${CI_DIR}/admin/framework/* .
2725

2826
echo -e "${BOLD}Bundle the docs...${NORMAL}"
29-
rm -rf ${TARGET}/docs
30-
cp -rf user_guide_src/build/html ${TARGET}/docs
27+
rm -rf docs
28+
cp -rf ${CI_DIR}/user_guide_src/build/html ./docs
3129

3230
#---------------------------------------------------
3331
# And finally, get ready for merging
3432
echo -e "${BOLD}Assemble the pieces...${NORMAL}"
35-
cd $TARGET
3633
git add .
3734
git commit -S -m "Release ${RELEASE}"
3835
git checkout master

admin/release-userguide

100755100644
+3-3
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
# Setup variables
66
. admin/release-config
77
TARGET=dist/userguide
8+
cd $TARGET
89
git checkout $branch
910

1011
#---------------------------------------------------
1112
echo -e "${BOLD}Build the user guide distributable${NORMAL}"
1213

13-
cp -rf user_guide_src/build/html ${TARGET}/docs
14-
cp -rf user_guide_src/build/epub/* ${TARGET}/
14+
cp -rf ${CI_DIR}/user_guide_src/build/html/* docs
15+
cp -rf ${CI_DIR}/user_guide_src/build/epub/CodeIgniter4.epub ./CodeIgniter${RELEASE}.epub
1516

1617
#---------------------------------------------------
1718
# And finally, get ready for merging
1819
echo -e "${BOLD}Assemble the pieces...${NORMAL}"
19-
cd $TARGET
2020
git add .
2121
git commit -S -m "Release ${RELEASE}"
2222
git checkout master

admin/workflow.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ release prep (`admin/release <version> <qualifier>`)...
1515
- prepare the distribution repos
1616

1717
After these have been vetted ...
18-
- push the release to github (`admin/deploy please`)
18+
- push the release(s) to github (`admin/release-deploy <version> <qualifier>`)
1919
- **manually** create the releases & tag them on github, based on master
2020
Include any supplementary binaries as part of releases.
2121
- **manually** post a sticky announcement thread on the forum

user_guide_src/source/changelogs/next.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The list of changed files follows, with PR numbers shown.
2525
- form.php removed #1442
2626

2727
- public /
28-
- index.php #1388
28+
- index.php #1388, #1457
2929

3030
- system /
3131
- Autoloader/
@@ -294,6 +294,7 @@ PRs merged:
294294
- #1463 Fix the remaining bcit-ci references
295295
- #1461 Typo fix: donload -> download
296296
- #1460 remove unneeded ternary check at HoneyPot
297+
- #1457 use $paths->systemDirectory in public/index.php
297298
- #1456 Beef up HTTP URI & Response testing
298299
- #1455 un-ignore application/Database/Migrations directory
299300
- #1454 add missing break; in loop at Email::getEncoding()

0 commit comments

Comments
 (0)