updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dwarffortress-graphics / dwarffortress-graphics.install
blob4915a53974c93ece657b1d578a3e2beb8ad2e262
1 ## arg 1:  the new package version
2 post_install() {
3   post_upgrade
4   echo ">>> You can switch to the shaded graphics set by using the following command"
5   echo "sed -i 's/mayday-sans-highlight.png/mayday.png/g' /opt/df_linux/data/init/init.txt"
8 ## arg 1:  the new package version
9 ## arg 2:  the old package version
10 post_upgrade() {
11   if [ `vercmp $2 0.31` -eq -1 ]; then
12     echo '  DF2010 Changelog: http://df.magmawiki.com/index.php/DF2010:Release_Information'
13   fi
14   # Make sure that permissions are correct
15   chown -R root:games /opt/df_linux/data
16   find /opt/df_linux/data/save -type d -exec chmod 775 {} + &
17   find /opt/df_linux/data/save -type f -exec chmod 664 {} + &
20 # vim:set ts=2 sw=2 et: