You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.4 KiB
36 lines
1.4 KiB
11 years ago
|
#!/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.
|
||
5 years ago
|
# The only file to update is: tdebase/doc/releasenotes/index.docbook.
|
||
11 years ago
|
|
||
|
# 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
|
||
|
|
||
5 years ago
|
RELEASE_VERSION="$( ${TDEDIR}/bin/tde-config --version | sed -n 's|^TDE: ||p' )"
|
||
|
RELEASE_NOTES="$( ${TDEDIR}/bin/kreadconfig --file ${TDEHOME}/share/config/kdeglobals --group "Release Notes" --key "$RELEASE_VERSION" )"
|
||
|
|
||
11 years ago
|
if [ "$RELEASE_NOTES" = "" ] || [ "$RELEASE_NOTES" != "true" ]; then
|
||
|
echo "[release_notes] Release version: $RELEASE_VERSION"
|
||
|
echo "[release_notes] Release notes: $RELEASE_NOTES"
|
||
5 years ago
|
if ${TDEDIR}/bin/khelpcenter help:/khelpcenter/releasenotes ; then
|
||
|
${TDEDIR}/bin/kwriteconfig --file ${TDEHOME}/share/config/kdeglobals --group "Release Notes" --key "$RELEASE_VERSION" --type bool "true"
|
||
11 years ago
|
fi
|
||
5 years ago
|
RELEASE_NOTES="$( ${TDEDIR}/bin/kreadconfig --file ${TDEHOME}/share/config/kdeglobals --group "Release Notes" --key "$RELEASE_VERSION" )"
|
||
11 years ago
|
echo "[release_notes] Release notes: $RELEASE_NOTES"
|
||
|
fi
|
||
|
|
||
5 years ago
|
unset RELEASE_NOTES RELEASE_VERSION
|
||
11 years ago
|
exit 0
|
||
5 years ago
|
|