summaryrefslogtreecommitdiffstats
path: root/release_notes
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2014-01-19 02:07:29 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2014-01-19 02:07:29 -0600
commit32f7a85c9df5f48a6c9b4d73f0323c490a6ae95f (patch)
treeb20a7a37eb8d497d5a55692ae023a1d649a2f683 /release_notes
parent8781095d0759d8af3207e717560a53c02c32bc8b (diff)
downloadtdebase-32f7a85c9df5f48a6c9b4d73f0323c490a6ae95f.tar.gz
tdebase-32f7a85c9df5f48a6c9b4d73f0323c490a6ae95f.zip
Create a Release Notes help handbook module, create a Release Notes link
in the Welcome to TDE handbook, and provide a run-once autostart mechanism.
Diffstat (limited to 'release_notes')
-rw-r--r--release_notes35
1 files changed, 35 insertions, 0 deletions
diff --git a/release_notes b/release_notes
new file mode 100644
index 000000000..9d89732c9
--- /dev/null
+++ b/release_notes
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# A script to open/autostart the release notes in the help
+# handbook, but only once.
+
+# Run this script from the global autostart directory.
+
+# When the release version increments, this script will detect the
+# difference through tde-config and a respective key in kdeglobals.
+# This script then will open the release notes for that next release.
+# The only file to update is: tdebase/doc/releasenotes/release_notes.docbook.
+
+# As this script is run as a global TDE autostart app, all
+# environment variables should already be set.
+
+if [ "$TDEDIR" = "" ] || [ "$TDEHOME" = "" ]; then
+ exit 1
+fi
+
+RELEASE_VERSION=`$TDEDIR/bin/tde-config --version | grep TDE: | awk '{print $2}'`
+RELEASE_NOTES=`$TDEDIR/bin/kreadconfig --file $TDEHOME/share/config/kdeglobals --group "Release Notes" --key "$RELEASE_VERSION"`
+if [ "$RELEASE_NOTES" = "" ] || [ "$RELEASE_NOTES" != "true" ]; then
+ echo "[release_notes] Release version: $RELEASE_VERSION"
+ echo "[release_notes] Release notes: $RELEASE_NOTES"
+ $TDEDIR/bin/khelpcenter help:/khelpcenter/releasenotes
+ if [ "$?" = "0" ]; then
+ $TDEDIR/bin/kwriteconfig --file $TDEHOME/share/config/kdeglobals --group "Release Notes" --key "$RELEASE_VERSION" --type bool "true"
+ fi
+ RELEASE_NOTES=`$TDEDIR/bin/kreadconfig --file $TDEHOME/share/config/kdeglobals --group "Release Notes" --key "$RELEASE_VERSION"`
+ echo "[release_notes] Release notes: $RELEASE_NOTES"
+fi
+
+unset RELEASE_NOTES
+unset RELEASE_VERSION
+exit 0