From 70d2af523cf495a41ad1ef5a40ec56c7362e59e2 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Mon, 19 Dec 2016 00:37:50 +0200 Subject: [PATCH] Fixed documentation dumping scripts. Dumped documentation is not stored in the repository, it would just bloat it. refs #6848 --- releng/doc/dump-mysql-db.sh | 18 ++++++++++++++ releng/doc/dump-wikis.sh | 21 ++++++++++++++++ releng/doc/release.html | 15 +++++------- releng/doc/release.md | 11 ++++----- releng/doc/tag-dev-wiki.sh | 47 ----------------------------------- releng/doc/tag-wiki.sh | 49 ------------------------------------- releng/doc/tag.sh | 5 ---- 7 files changed, 50 insertions(+), 116 deletions(-) create mode 100755 releng/doc/dump-mysql-db.sh create mode 100755 releng/doc/dump-wikis.sh delete mode 100644 releng/doc/tag-dev-wiki.sh delete mode 100644 releng/doc/tag-wiki.sh delete mode 100644 releng/doc/tag.sh diff --git a/releng/doc/dump-mysql-db.sh b/releng/doc/dump-mysql-db.sh new file mode 100755 index 000000000..271eb42c1 --- /dev/null +++ b/releng/doc/dump-mysql-db.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +major=$1 +minor=$2 +service=$3 +wikidb=$4 +wikidbusr=$5 + +srcdb=${wikidb} +srcdbusr=${wikidbusr} +tgtdb=${wikidb}_${major}_${minor}_${service} + +echo "Dumping database ${srcdb} to ${tgtdb} as user ${srcdbusr}" +echo "Press enter to continue or C-c to cancel" +read foo + +echo "Dumping $srcdb" +mysqldump -u ${srcdbusr} -p ${srcdb} > ${tgtdb}.dump diff --git a/releng/doc/dump-wikis.sh b/releng/doc/dump-wikis.sh new file mode 100755 index 000000000..ae2a64dc3 --- /dev/null +++ b/releng/doc/dump-wikis.sh @@ -0,0 +1,21 @@ +#!/bin/bash + + +major=1 +minor=25 +service=0 +ver=${major}.${minor}.${service} + +mkdir ${ver} +cd ${ver} +OLDIFS=$IFS +IFS=',' +for db in enduserwikidb,enduserwikiuser devwikidb,devwikiuser; do + set $db + sh ../dump-mysql-db.sh ${major} ${minor} ${service} ${1} ${2} +done +IFS=$OLDIFS + +cd .. +tar zcvf ${ver}.tar.gz ${ver} +rm -rf ${ver} diff --git a/releng/doc/release.html b/releng/doc/release.html index 0708ef4c3..126c76cd8 100644 --- a/releng/doc/release.html +++ b/releng/doc/release.html @@ -1,7 +1,7 @@ -MarkdownPad Document +release