updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / openarch_libreoffice_splash / libreoffice_splash.install
blobac8acae5a6c778972f754a50a66709a82c6248a3
1 #!/bin/bash
3 post_install()
5 echo "Backup old LibreOffice splash image and about image"
6 install -Dm644 /usr/lib/libreoffice/program/intro.png /usr/lib/libreoffice/program/intro.png_bak
7 #install -Dm644 /usr/lib/libreoffice/program/about.png /usr/lib/libreoffice/program/about.png_bak
8 install -Dm644 /etc/libreoffice/sofficerc /etc/libreoffice/sofficerc_bak
9 echo "Install new LibreOffice splash image"
10 install -Dm644 /usr/lib/libreoffice/program/intro.png_new /usr/lib/libreoffice/program/intro.png
11 #install -Dm644 /usr/lib/libreoffice/program/about.png_new /usr/lib/libreoffice/program/about.png
12 install -Dm644 /etc/libreoffice/sofficerc_new /etc/libreoffice/sofficerc
14 post_upgrade()
16 echo "Upgrade LibreOffice splash image and about image"
17 install -D -m644 /usr/lib/libreoffice/program/intro.png_new /usr/lib/libreoffice/program/intro.png
18 #install -D -m644 /usr/lib/libreoffice/program/about.png_new /usr/lib/libreoffice/program/about.png
19 install -Dm644 /etc/libreoffice/sofficerc_new /etc/libreoffice/sofficerc
21 post_remove()
23 echo "Restore old LibreOffice splash image and about image"
24 mv /usr/lib/libreoffice/program/intro.png_bak /usr/lib/libreoffice/program/intro.png
25 #mv /usr/lib/libreoffice/program/about.png_bak /usr/lib/libreoffice/program/about.png
26 mv /etc/libreoffice/sofficerc_bak /etc/libreoffice/sofficerc