Skip to content
This repository was archived by the owner on Apr 11, 2018. It is now read-only.

Commit f44d570

Browse files
committed
Fix VersionControl addin (fix #2)
1 parent 0258f30 commit f44d570

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

generate.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ cp -rf ../src/. installer
4040
# Copy MonoDevelop binaries
4141
mkdir installer/MonoDevelop
4242
cp -rf $MDFDIR/lib/monodevelop/. installer/MonoDevelop
43-
# Lets not include git version control addin so that people don't ask me why it's not working...
44-
rm -rf installer/MonoDevelop/AddIns/VersionControl/MonoDevelop.VersionControl.Git.dll
43+
44+
# remove bundled version of libgit2
45+
rm installer/MonoDevelop/AddIns/VersionControl/libgit2-*
4546

4647
echo "Building the Installer..."
4748
rm -rf ../bin

src/monodevelop-stable-uninstall

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ rm /usr/bin/mdtool-stable
1313
rm /usr/bin/monodevelop-stable-uninstall
1414
rm /usr/share/applications/monodevelop-stable.desktop
1515
rm /usr/share/icons/hicolor/scalable/apps/monodevelop-stable.svg
16+
rm /usr/lib/libgit2-e8b8948.so

src/postinstall.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
#!/bin/bash
22

3+
LIBPATH="/usr/lib"
4+
LIBGIT2="$(ls -x $LIBPATH | grep -m 1 libgit2.so)"
5+
36
# Check installation priviledge
47
if [ "$(id -u)" != "0" ]; then
58
echo "Please make sure you are running this installer with sudo or as root." 1>&2
69
exit 1
710
fi
811

12+
# Check for libgit2
13+
if [ -z "$LIBGIT2" ]
14+
then
15+
echo "libgit2 not found, please install it and re run the installer."
16+
exit 1
17+
fi
18+
919
# Check previous versions
1020
if type "monodevelop-stable-uninstall" > /dev/null 2>&1
1121
then
@@ -16,6 +26,10 @@ fi
1626
echo "Copying MonoDevelop binaries..."
1727
cp -rf MonoDevelop/ /opt/MonoDevelop/
1828

29+
echo "Adding libgit2-e8b8948.so symlink to fix VersionControl Addin..."
30+
rm -f "$LIBPATH/libgit2-e8b8948.so"
31+
ln -s "$LIBPATH/$LIBGIT2" "$LIBPATH/libgit2-e8b8948.so"
32+
1933
echo "Adding terminal commands..."
2034
cp monodevelop-stable /usr/bin/monodevelop-stable
2135
chmod +x /usr/bin/monodevelop-stable

0 commit comments

Comments
 (0)