Skip to content
Garvin Hicking edited this page Apr 23, 2016 · 19 revisions
  • Edit serendipity_config.inc.php to adjust $serendipity['version’]
  • Update docs/NEWS adding release date
  • Log in to SF.Net, create a new release directory, e.g. "2.0.1"
  • Execute release packaging script:
# Check out GITHUB code
cd git/2.0/Serendipity
git pull
git archive --output release.tar --prefix serendipity/ 2.0
mv release.tar ../../../

# Remove probably existig files
cd ../../../
rm -rf serendipity
tar -xvf release.tar
rm serendipity-2.0.1.tar.gz
rm serendipity-2.0.1.zip
cd serendipity/bundled-libs

# Execute s9y release script
./create_release.sh serendipity-2.0.1.tar.gz serendipity nobody nogroup
cd ../../
zip -9 -r serendipity-2.0.1.zip serendipity
tar --owner=nobody --group=nogroup -cjf "serendipity-2.0.1.tar.bz2" serendipity

# Create LITE version
cd serendipity
mkdir templates_stripped
mv templates/default templates_stripped/
mv templates/carl_contest templates_stripped/
mv templates/bulletproof templates_stripped/
mv templates/2k11 templates_stripped/
mv templates/jquery.js templates_stripped/
rm -rf templates
mv templates_stripped templates
rm -rf deployment
rm checksums.inc.php
cd ..
zip -r serendipity-2.0.1-lite.zip serendipity
tar --owner=nobody --group=nogroup -czf "serendipity-2.0.1-lite.tar.gz" "serendipity"
tar --owner=nobody --group=nogroup -cjf "serendipity-2.0.1-lite.tar.bz2" "serendipity"

# Transmit release files to SourceForge
scp serendipity/docs/NEWS [email protected]:/home/frs/project/p/ph/php-blog/serendipity/2.0.1/README
scp serendipity/docs/NEWS [email protected]:/home/frs/project/p/ph/php-blog/serendipity/README
scp serendipity/docs/NEWS [email protected]:/home/frs/project/p/ph/php-blog/README
scp serendipity-2.0.1* [email protected]:/home/frs/project/p/ph/php-blog/serendipity/2.0.1/
# Create MD5 Checksums [use for copy & paste]
php s9ymd5.php 2.0.1
  • Login to SF.Net again, make the new release the default
  • Change docs/RELEASE file in master and 2.0 branch to point to new release, commit.
  • Create a github tag for the release:
git tag 2.0.1
git push origin --tags
  • Upload created release file to github.com
  • Increment version number to 2.0.2 in serendipity_config.inc.php
  • Edit www.s9y.org download section, add MD5 checksums, update latest release recommendation
  • Edit s9y.github.io repository files: _includes/showcase.html (button) and downloads.md.
  • Update blog.s9y.org to latest version
  • Write a blog.s9y.org release announcement, make sidebar point to latest release
  • Write a board.s9y.org release announcement, point to blog posting
  • Let www.s9y.org/latest point to the ZIP file of the most recent stable release (.htaccess redirect)