if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
( cd opt ; rm -rf grass )
( cd opt ; ln -sf grass78 grass )
( cd opt/grass78/lib ; rm -rf libgrass_arraystats.so )
( cd opt/grass78/lib ; ln -sf libgrass_arraystats.7.8.so libgrass_arraystats.so )
( cd opt/grass78/lib ; rm -rf libgrass_bitmap.so )
( cd opt/grass78/lib ; ln -sf libgrass_bitmap.7.8.so libgrass_bitmap.so )
( cd opt/grass78/lib ; rm -rf libgrass_btree.so )
( cd opt/grass78/lib ; ln -sf libgrass_btree.7.8.so libgrass_btree.so )
( cd opt/grass78/lib ; rm -rf libgrass_btree2.so )
( cd opt/grass78/lib ; ln -sf libgrass_btree2.7.8.so libgrass_btree2.so )
( cd opt/grass78/lib ; rm -rf libgrass_cairodriver.so )
( cd opt/grass78/lib ; ln -sf libgrass_cairodriver.7.8.so libgrass_cairodriver.so )
( cd opt/grass78/lib ; rm -rf libgrass_calc.so )
( cd opt/grass78/lib ; ln -sf libgrass_calc.7.8.so libgrass_calc.so )
( cd opt/grass78/lib ; rm -rf libgrass_ccmath.so )
( cd opt/grass78/lib ; ln -sf libgrass_ccmath.7.8.so libgrass_ccmath.so )
( cd opt/grass78/lib ; rm -rf libgrass_cdhc.so )
( cd opt/grass78/lib ; ln -sf libgrass_cdhc.7.8.so libgrass_cdhc.so )
( cd opt/grass78/lib ; rm -rf libgrass_cluster.so )
( cd opt/grass78/lib ; ln -sf libgrass_cluster.7.8.so libgrass_cluster.so )
( cd opt/grass78/lib ; rm -rf libgrass_datetime.so )
( cd opt/grass78/lib ; ln -sf libgrass_datetime.7.8.so libgrass_datetime.so )
( cd opt/grass78/lib ; rm -rf libgrass_dbmibase.so )
( cd opt/grass78/lib ; ln -sf libgrass_dbmibase.7.8.so libgrass_dbmibase.so )
( cd opt/grass78/lib ; rm -rf libgrass_dbmiclient.so )
( cd opt/grass78/lib ; ln -sf libgrass_dbmiclient.7.8.so libgrass_dbmiclient.so )
( cd opt/grass78/lib ; rm -rf libgrass_dbmidriver.so )
( cd opt/grass78/lib ; ln -sf libgrass_dbmidriver.7.8.so libgrass_dbmidriver.so )
( cd opt/grass78/lib ; rm -rf libgrass_dbstubs.so )
( cd opt/grass78/lib ; ln -sf libgrass_dbstubs.7.8.so libgrass_dbstubs.so )
( cd opt/grass78/lib ; rm -rf libgrass_dgl.so )
( cd opt/grass78/lib ; ln -sf libgrass_dgl.7.8.so libgrass_dgl.so )
( cd opt/grass78/lib ; rm -rf libgrass_dig2.so )
( cd opt/grass78/lib ; ln -sf libgrass_dig2.7.8.so libgrass_dig2.so )
( cd opt/grass78/lib ; rm -rf libgrass_display.so )
( cd opt/grass78/lib ; ln -sf libgrass_display.7.8.so libgrass_display.so )
( cd opt/grass78/lib ; rm -rf libgrass_driver.so )
( cd opt/grass78/lib ; ln -sf libgrass_driver.7.8.so libgrass_driver.so )
( cd opt/grass78/lib ; rm -rf libgrass_dspf.so )
( cd opt/grass78/lib ; ln -sf libgrass_dspf.7.8.so libgrass_dspf.so )
( cd opt/grass78/lib ; rm -rf libgrass_g3d.so )
( cd opt/grass78/lib ; ln -sf libgrass_g3d.7.8.so libgrass_g3d.so )
( cd opt/grass78/lib ; rm -rf libgrass_gis.so )
( cd opt/grass78/lib ; ln -sf libgrass_gis.7.8.so libgrass_gis.so )
( cd opt/grass78/lib ; rm -rf libgrass_gmath.so )
( cd opt/grass78/lib ; ln -sf libgrass_gmath.7.8.so libgrass_gmath.so )
( cd opt/grass78/lib ; rm -rf libgrass_gpde.so )
( cd opt/grass78/lib ; ln -sf libgrass_gpde.7.8.so libgrass_gpde.so )
( cd opt/grass78/lib ; rm -rf libgrass_gproj.so )
( cd opt/grass78/lib ; ln -sf libgrass_gproj.7.8.so libgrass_gproj.so )
( cd opt/grass78/lib ; rm -rf libgrass_htmldriver.so )
( cd opt/grass78/lib ; ln -sf libgrass_htmldriver.7.8.so libgrass_htmldriver.so )
( cd opt/grass78/lib ; rm -rf libgrass_imagery.so )
( cd opt/grass78/lib ; ln -sf libgrass_imagery.7.8.so libgrass_imagery.so )
( cd opt/grass78/lib ; rm -rf libgrass_interpdata.so )
( cd opt/grass78/lib ; ln -sf libgrass_interpdata.7.8.so libgrass_interpdata.so )
( cd opt/grass78/lib ; rm -rf libgrass_interpfl.so )
( cd opt/grass78/lib ; ln -sf libgrass_interpfl.7.8.so libgrass_interpfl.so )
( cd opt/grass78/lib ; rm -rf libgrass_iortho.so )
( cd opt/grass78/lib ; ln -sf libgrass_iortho.7.8.so libgrass_iortho.so )
( cd opt/grass78/lib ; rm -rf libgrass_lidar.so )
( cd opt/grass78/lib ; ln -sf libgrass_lidar.7.8.so libgrass_lidar.so )
( cd opt/grass78/lib ; rm -rf libgrass_linkm.so )
( cd opt/grass78/lib ; ln -sf libgrass_linkm.7.8.so libgrass_linkm.so )
( cd opt/grass78/lib ; rm -rf libgrass_lrs.so )
( cd opt/grass78/lib ; ln -sf libgrass_lrs.7.8.so libgrass_lrs.so )
( cd opt/grass78/lib ; rm -rf libgrass_manage.so )
( cd opt/grass78/lib ; ln -sf libgrass_manage.7.8.so libgrass_manage.so )
( cd opt/grass78/lib ; rm -rf libgrass_neta.so )
( cd opt/grass78/lib ; ln -sf libgrass_neta.7.8.so libgrass_neta.so )
( cd opt/grass78/lib ; rm -rf libgrass_nviz.so )
( cd opt/grass78/lib ; ln -sf libgrass_nviz.7.8.so libgrass_nviz.so )
( cd opt/grass78/lib ; rm -rf libgrass_ogsf.so )
( cd opt/grass78/lib ; ln -sf libgrass_ogsf.7.8.so libgrass_ogsf.so )
( cd opt/grass78/lib ; rm -rf libgrass_pngdriver.so )
( cd opt/grass78/lib ; ln -sf libgrass_pngdriver.7.8.so libgrass_pngdriver.so )
( cd opt/grass78/lib ; rm -rf libgrass_psdriver.so )
( cd opt/grass78/lib ; ln -sf libgrass_psdriver.7.8.so libgrass_psdriver.so )
( cd opt/grass78/lib ; rm -rf libgrass_qtree.so )
( cd opt/grass78/lib ; ln -sf libgrass_qtree.7.8.so libgrass_qtree.so )
( cd opt/grass78/lib ; rm -rf libgrass_raster.so )
( cd opt/grass78/lib ; ln -sf libgrass_raster.7.8.so libgrass_raster.so )
( cd opt/grass78/lib ; rm -rf libgrass_rli.so )
( cd opt/grass78/lib ; ln -sf libgrass_rli.7.8.so libgrass_rli.so )
( cd opt/grass78/lib ; rm -rf libgrass_rowio.so )
( cd opt/grass78/lib ; ln -sf libgrass_rowio.7.8.so libgrass_rowio.so )
( cd opt/grass78/lib ; rm -rf libgrass_rtree.so )
( cd opt/grass78/lib ; ln -sf libgrass_rtree.7.8.so libgrass_rtree.so )
( cd opt/grass78/lib ; rm -rf libgrass_segment.so )
( cd opt/grass78/lib ; ln -sf libgrass_segment.7.8.so libgrass_segment.so )
( cd opt/grass78/lib ; rm -rf libgrass_shape.so )
( cd opt/grass78/lib ; ln -sf libgrass_shape.7.8.so libgrass_shape.so )
( cd opt/grass78/lib ; rm -rf libgrass_sim.so )
( cd opt/grass78/lib ; ln -sf libgrass_sim.7.8.so libgrass_sim.so )
( cd opt/grass78/lib ; rm -rf libgrass_sqlp.so )
( cd opt/grass78/lib ; ln -sf libgrass_sqlp.7.8.so libgrass_sqlp.so )
( cd opt/grass78/lib ; rm -rf libgrass_stats.so )
( cd opt/grass78/lib ; ln -sf libgrass_stats.7.8.so libgrass_stats.so )
( cd opt/grass78/lib ; rm -rf libgrass_symb.so )
( cd opt/grass78/lib ; ln -sf libgrass_symb.7.8.so libgrass_symb.so )
( cd opt/grass78/lib ; rm -rf libgrass_temporal.so )
( cd opt/grass78/lib ; ln -sf libgrass_temporal.7.8.so libgrass_temporal.so )
( cd opt/grass78/lib ; rm -rf libgrass_vector.so )
( cd opt/grass78/lib ; ln -sf libgrass_vector.7.8.so libgrass_vector.so )
( cd opt/grass78/lib ; rm -rf libgrass_vedit.so )
( cd opt/grass78/lib ; ln -sf libgrass_vedit.7.8.so libgrass_vedit.so )
( cd usr/bin ; rm -rf grass )
( cd usr/bin ; ln -sf grass78 grass )
