From: Tuukka Lehtonen Date: Sun, 18 Dec 2016 22:37:50 +0000 (+0200) Subject: Fixed documentation dumping scripts. X-Git-Tag: v1.25.0~1^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=70d2af523cf495a41ad1ef5a40ec56c7362e59e2;p=simantics%2Fplatform.git Fixed documentation dumping scripts. Dumped documentation is not stored in the repository, it would just bloat it. refs #6848 --- 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