aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/release
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/release')
-rwxr-xr-xscripts/release23
1 files changed, 10 insertions, 13 deletions
diff --git a/scripts/release b/scripts/release
index ce7b49e..e7b1aaa 100755
--- a/scripts/release
+++ b/scripts/release
@@ -1,7 +1,7 @@
-#!/bin/zsh
+#!/usr/bin/env zsh
# The Release Script
# Based on Python Project Template by Chris Warrick
-# Copyright © 2013-2016, Chris Warrick.
+# Copyright © 2013-2020, Chris Warrick.
# All rights reserved.
# Permission is hereby granted, free of charge, to any
@@ -86,12 +86,10 @@ status 'Replacing versions in files...'
sed "s/version=.*/version='$version',/g" setup.py -i
sed "s/version = .*/version = '$version'/g" docs/sphinx/conf.py -i
sed "s/release = .*/release = '$version'/g" docs/sphinx/conf.py -i
-sed "s/:Version: .*/:Version: $version/g" docs/*.txt docs/*.rst -i
+sed "s/:Version: .*/:Version: $version/g" docs/*.rst -i
sed "s/:Version: .*/:Version: Nikola $version/g" docs/man/nikola.rst -i
sed "s/__version__ = .*/__version__ = '$version'/g" nikola/__init__.py -i
-sed "s/version: .*/version: $version/g" snapcraft/stable/snapcraft.yaml -i
-sed "s/source-tag: .*/source-tag: v$version/g" snapcraft/stable/snapcraft.yaml -i
-sed "s/Nikola==.*'/Nikola==$version'/g" snapcraft/nikola.py -i
+sed "s/version: .*/version: $version/g" snapcraft.yaml -i
setopt errexit # Exit on errors
@@ -103,18 +101,18 @@ rst2man.py docs/man/nikola.rst > docs/man/nikola.1
gzip -f docs/man/nikola.1
status 'Updating path handler documentation...'
-scripts/document_path_handlers.py > docs/path_handlers.txt
+scripts/document_path_handlers.py > docs/path_handlers.rst
status 'Updating Jinja2 templates...'
scripts/jinjify.py
-status 'Updating Bower...'
-scripts/update-bower.sh
+status 'Updating npm assets...'
+scripts/update-npm-assets.sh
status 'Updating symlinked list...'
scripts/generate_symlinked_list.sh
status 'Updating website (conf.py and docs)...'
-scripts/generate_conf.py > ../nikola-site/listings/conf.py
+python -m nikola default_config > ../nikola-site/listings/conf.py
cp AUTHORS.txt CHANGES.txt ../nikola-site/stories
cp docs/*.* ../nikola-site/stories
-sed 's/Nikola v[0-9\.A_Za-z-]\{1,\}/Nikola'" v$version/g" ../nikola-site/stories/conf.txt -i
+sed 's/Nikola v[0-9\.A_Za-z-]\{1,\}/Nikola'" v$version/g" ../nikola-site/stories/conf.rst -i
status 'Generating locales...'
scripts/import_po.py
status 'List of locales:'
@@ -144,7 +142,7 @@ cleanup
git add -A --ignore-errors . || exit $?
-git commit -S -asm "Version $version" || exit $?
+git commit -S -am "Version $version" || exit $?
git tag -sm "Version $version" v$version || exit $?
git push --follow-tags origin master || exit $?
@@ -156,4 +154,3 @@ echo " * Create a GitHub release"
echo " * Update GitHub Issues milestones"
echo " * Update Nikola’s website"
echo " * Send out announcement e-mails"
-echo " * Update AUR PKGBUILDs"