TDE base libraries and programs
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.

release_notes 1.4KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. #
  3. # A script to open/autostart the release notes in the help
  4. # handbook, but only once.
  5. # Run this script from the global autostart directory.
  6. # When the release version increments, this script will detect the
  7. # difference through tde-config and a respective key in kdeglobals.
  8. # This script then will open the release notes for that next release.
  9. # The only file to update is: tdebase/doc/releasenotes/release_notes.docbook.
  10. # As this script is run as a global TDE autostart app, all
  11. # environment variables should already be set.
  12. if [ "$TDEDIR" = "" ] || [ "$TDEHOME" = "" ]; then
  13. exit 1
  14. fi
  15. RELEASE_VERSION=`$TDEDIR/bin/tde-config --version | grep TDE: | awk '{print $2}'`
  16. RELEASE_NOTES=`$TDEDIR/bin/kreadconfig --file $TDEHOME/share/config/kdeglobals --group "Release Notes" --key "$RELEASE_VERSION"`
  17. if [ "$RELEASE_NOTES" = "" ] || [ "$RELEASE_NOTES" != "true" ]; then
  18. echo "[release_notes] Release version: $RELEASE_VERSION"
  19. echo "[release_notes] Release notes: $RELEASE_NOTES"
  20. $TDEDIR/bin/khelpcenter help:/khelpcenter/releasenotes
  21. if [ "$?" = "0" ]; then
  22. $TDEDIR/bin/kwriteconfig --file $TDEHOME/share/config/kdeglobals --group "Release Notes" --key "$RELEASE_VERSION" --type bool "true"
  23. fi
  24. RELEASE_NOTES=`$TDEDIR/bin/kreadconfig --file $TDEHOME/share/config/kdeglobals --group "Release Notes" --key "$RELEASE_VERSION"`
  25. echo "[release_notes] Release notes: $RELEASE_NOTES"
  26. fi
  27. unset RELEASE_NOTES
  28. unset RELEASE_VERSION
  29. exit 0