4a50325915daac04ec975e2f2a6e04b190bff117
[alioth/soundfonts.git] / debian / musescore-general-soundfont-lossless.postinst
1 #!/bin/sh
2
3 set -e
4
5 # This maintainer script can be called the following ways:
6 #
7 # * new-postinst "configure" [$most_recently_configured_version]
8 # The package is unpacked; all dependencies are unpacked and, when there
9 # are no circular dependencies, configured.
10 #
11 # * old-postinst "abort-upgrade" $new_version
12 # * conflictors-postinst "abort-remove" "in-favour" $package
13 #       $new_version
14 # * postinst "abort-remove"
15 # * deconfigureds-postinst "abort-deconfigure" "in-favour"
16 #       $failed_install_package $fip_version ["removing"
17 #       $conflicting_package $cp_version]
18 # The package is unpacked; all dependencies are at least Half-Installed,
19 # previously been configured, and not removed. In some error situations,
20 # dependencies may not be even fully unpacked.
21 #
22 # * postinst "triggered" "${triggers[*]}"
23 # For trigger-only calls, i.e. if "configure" is not called.
24
25 case $1 in
26 configure)
27         update-alternatives --force --install \
28             /usr/share/sounds/sf3/MuseScore_General.sf3 MuseScore_General.sf3 \
29             /usr/share/sounds/sf2/MuseScore_General_Full.sf2 55
30         ;;
31
32 abort-upgrade|abort-remove|abort-deconfigure)
33         ;;
34
35 triggered)
36         ;;
37
38 *)
39         echo >&2 "postinst called with unknown subcommand '$1'"
40         exit 1
41         ;;
42 esac
43
44 # dh_installdeb will replace this with shell code automatically
45 # generated by other debhelper scripts.
46
47 #DEBHELPER#
48
49 exit 0