mpdscribble.install 880 B

1234567891011121314151617181920212223
  1. post_install() {
  2. echo 'An example config is provided in /usr/share/mpdscribble/mpdscribble.conf.example'
  3. echo
  4. echo 'For system-wide config copy this file to /etc/mpdscribble.conf'
  5. echo 'For per-user config copy this file to ~/.mpdscribble/mpdscribble.conf'
  6. }
  7. ## arg 1: the new package version
  8. ## arg 2: the old package version
  9. pre_upgrade() {
  10. # removed /etc/mpdscribble.conf on FEB 19 2011
  11. # only display warning for people with mpdscribble older then 0.21
  12. if (( "$(vercmp 0.21-1 $2)" > 0 )) && [[ -f /etc/mpdscribble.conf ]]
  13. then
  14. echo "$1 is new $2 is old"
  15. cp /etc/mpdscribble.conf /etc/mpdscribble.conf.oldbackup
  16. echo 'The package does not provide /etc/mpdscribble.conf anymore.'
  17. echo 'Copied /etc/mpdscribble.conf to /etc/mpdscribble.conf.oldbackup'
  18. echo
  19. echo 'The example file is now located at /etc/mpdscribble.conf.example'
  20. fi
  21. }