[geany/infrastructure] 6285b1: Add scripts used to publish a new release

Colomban Wendling git-noreply at xxxxx
Sat Sep 28 14:01:57 UTC 2019


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sat, 28 Sep 2019 14:01:57 UTC
Commit:      6285b143604a1c4495b496a68dd47e2bc9be789a
             https://github.com/geany/infrastructure/commit/6285b143604a1c4495b496a68dd47e2bc9be789a

Log Message:
-----------
Add scripts used to publish a new release


Modified Paths:
--------------
    scripts/md5sums
    scripts/md5sums_plugins
    scripts/publish-release
    scripts/update-manual

Modified: scripts/md5sums
14 lines changed, 14 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+cd /srv/www/download.geany.org/
+
+mv MD5SUMS MD5SUMS.old
+md5sum * >MD5SUMS
+
+diff -u MD5SUMS.old MD5SUMS
+
+# sha256sums
+mv SHA256SUMS SHA256SUMS.old
+sha256sum * >SHA256SUMS
+
+diff -u SHA256SUMS.old SHA256SUMS


Modified: scripts/md5sums_plugins
14 lines changed, 14 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+cd /srv/www/plugins.geany.org/geany-plugins
+
+mv MD5SUMS MD5SUMS.old
+md5sum * >MD5SUMS
+
+diff -u MD5SUMS.old MD5SUMS
+
+# sha256sums
+mv SHA256SUMS SHA256SUMS.old
+sha256sum * >SHA256SUMS
+
+diff -u SHA256SUMS.old SHA256SUMS


Modified: scripts/publish-release
18 lines changed, 18 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+set -x
+
+V=$1
+
+mv geany-$V.tar.* /srv/www/download.geany.org/
+chmod 0644 /srv/www/download.geany.org/geany-$V.tar.*
+chgrp geany /srv/www/download.geany.org/geany-$V.tar.*
+
+for d in /srv/www/download.geany.org/ /srv/www/www.geany.org/files/; do
+	(cd $d && mv LATEST-IS-* LATEST-IS-$V)
+done
+
+sudo -u geany /home/geany/md5sums
+/home/geany/update-manual $V
+


Modified: scripts/update-manual
40 lines changed, 40 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,40 @@
+#!/bin/bash
+
+set -e
+set -x
+
+if [ $# -ne 1 ]; then
+	echo "USAGE: $0 VERSION" >&2
+	exit 1
+fi
+grep -E '^[0-9]+[.][0-9]+([.][0-9]+)?$' <<<"$1"
+V=$1
+
+dir=$(mktemp -d) || exit 1
+trap 'rm -rf "$dir"' EXIT QUIT TERM ABRT KILL INT
+
+cd "$dir"
+tar xf "/srv/www/download.geany.org/geany-$V.tar.gz"
+S="$dir/geany-$V/"
+
+cd /srv/www/www.geany.org/manual/
+# new version is a symlink to the dev version
+rm -f "$V"
+mkdir "$V"
+mv "$S/doc/geany.css" "$V/"
+mv "$S/doc/geany.txt" "$V/"
+mv "$S/doc/geany.html" "$V/index.html"
+mv "$S/doc/images" "$V/"
+mv "$S/HACKING" "$V/"
+rst2html "$V/HACKING" > "$V/hacking.html"
+
+# fix permissions, just in case
+chgrp geany "$V/" -R
+chmod a+rX "$V/" -R
+
+# update the current version
+ln -nsTf "$V" current
+
+# list and check
+ls -l
+diff -u <(find 1.27 | cut -d/ -f2-) <(find "$V" | cut -d/ -f2-)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list