This repository was archived by the owner on Apr 11, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,9 @@ cp -rf ../src/. installer
4040# Copy MonoDevelop binaries
4141mkdir installer/MonoDevelop
4242cp -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
4647echo " Building the Installer..."
4748rm -rf ../bin
Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ rm /usr/bin/mdtool-stable
1313rm /usr/bin/monodevelop-stable-uninstall
1414rm /usr/share/applications/monodevelop-stable.desktop
1515rm /usr/share/icons/hicolor/scalable/apps/monodevelop-stable.svg
16+ rm /usr/lib/libgit2-e8b8948.so
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ LIBPATH=" /usr/lib"
4+ LIBGIT2=" $( ls -x $LIBPATH | grep -m 1 libgit2.so) "
5+
36# Check installation priviledge
47if [ " $( id -u) " != " 0" ]; then
58 echo " Please make sure you are running this installer with sudo or as root." 1>&2
69 exit 1
710fi
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
1020if type " monodevelop-stable-uninstall" > /dev/null 2>&1
1121then
1626echo " Copying MonoDevelop binaries..."
1727cp -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+
1933echo " Adding terminal commands..."
2034cp monodevelop-stable /usr/bin/monodevelop-stable
2135chmod +x /usr/bin/monodevelop-stable
You can’t perform that action at this time.
0 commit comments