From 780db2ae077ae3e81256726d9dd671a831a09e08 Mon Sep 17 00:00:00 2001 From: "Marcel Kapfer (mmk2410)" Date: Sat, 21 May 2016 21:06:13 +0200 Subject: [PATCH] Update script for version 1.4.3 --- update-scripts/1-4-2_1-4-3.sh | 85 +++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 update-scripts/1-4-2_1-4-3.sh diff --git a/update-scripts/1-4-2_1-4-3.sh b/update-scripts/1-4-2_1-4-3.sh new file mode 100644 index 0000000..bcac261 --- /dev/null +++ b/update-scripts/1-4-2_1-4-3.sh @@ -0,0 +1,85 @@ +#!/bin/bash +# Update script for Rangitaki from version 1.4.2 to 1.4.3 +# Also works from 1.4.0 to 1.4.3 + +version="1.4.3" +new="./rbe-new" + +echo -n "Downloading version $version from GitLab... " +git clone https://gitlab.com/mmk2410/rangitaki.git "$new" + +if [[ $1 == "--debug" ]]; then + cd $new + git checkout master + cd ../ +fi +echo "done" + +echo -n "Updating ressources... " +rm -rf ./res/ +mv $new/res/ ./ +echo "done" + +echo -n "Updating source files... " +rm ./src/coffee/app.coffee +mv $new/src/coffee/app.coffee ./src/coffee/ +mv $new/src/sass-themes/nextDESIGN.sass ./src/sass-themes/ +echo "done" + +echo -n "Updating extensions... " +rm ./themes/material-light.css +rm ./themes/material-dark.css +rm ./themes/background-img.css +mv $new/themes/* ./themes/ +echo "done" + +echo -n "Updating RCC... " +rm -rf ./rcc +mv $new/rcc ./ +rm ./rcc/password.php +echo "done" + +echo -n "Updating core... " +rm ./index.php +mv $new/index.php ./ +echo "done" + +echo -n "Updating binaries... " +rm -rf ./bin +mv $new/bin/ ./ +echo "done" + +echo -n "Updating themes... " +rm ./themes/material-light.css +rm ./themes/material-dark.css +rm ./themes/background-img.css +mv $new/themes/* ./themes/ +echo "done" + +echo -n "Updating npm... " +mv $new/package.json ./ +echo "done" + +echo -n "Updating Changelog... " + +if [ -f ./CHANGELOG.txt ]; then + rm CHANGELOG.txt +fi + +mv $new/CHANGELOG.md ./ +echo "done" + +echo -n "Cleaning up... " +if [[ $1 != "--debug" ]]; then + echo -n "Cleaning up... " + rm -rf $new + echo "done" +fi + +if [ -d "./update-scripts" ]; then + echo -n "Remove obsolete update scripts folder... " + rm -rf "./update-scripts" + echo "done" +fi + +echo "Your Rangitaki installation is updated to version $version"