b239ac7bbb
(cherry picked from commit 247f970aebe30d19a1c975880d604a74d2684002) Former-commit-id: 920f074eb1378c72932460e90a8516f3e7c020b4
30 lines
929 B
Bash
30 lines
929 B
Bash
#!/bin/sh -e
|
|
|
|
# Work around for gacutil needing /etc/mono/config >= 5.20
|
|
if [ -e /etc/mono/config.dpkg-new ]; then
|
|
mv /etc/mono/config.dpkg-new /etc/mono/config
|
|
fi
|
|
|
|
# On upgrades we need to repopulate the GAC and framework paths
|
|
# to accomodate any changes in layout
|
|
#
|
|
# We only need to do this on upgrade; on first configure we know
|
|
# that any GAC libraries will call gac-install-package later.
|
|
if [ -n "$2" ]; then
|
|
# Install the GAC
|
|
if [ -x /usr/share/cli-common/gac-install ]; then
|
|
/usr/share/cli-common/gac-install mono
|
|
fi
|
|
# Install any framework libs
|
|
if [ -x /usr/share/cli-common/framework-install ]; then
|
|
/usr/share/cli-common/framework-install mono
|
|
fi
|
|
fi
|
|
|
|
# Update the alternatives
|
|
update-alternatives \
|
|
--install /usr/bin/cli-gacutil global-assembly-cache-tool /usr/bin/gacutil 10 \
|
|
--slave /usr/share/man/man1/cli-gacutil.1.gz cli-gacutil.1.gz /usr/share/man/man1/gacutil.1.gz
|
|
|
|
#DEBHELPER#
|