@@ -282,7 +282,7 @@
</target>
<target name="clean" depends="clean.modules" description="cleanup all">
- <delete dir="${module.writelatex-git-bridge.basedir}/bin" />
+ <delete dir="${module.writelatex-git-bridge.basedir}/bin/writelatex-git-bridge.jar" />
<target name="build.modules" depends="init, clean, compile.module.writelatex-git-bridge" description="build all modules"/>
@@ -0,0 +1,8 @@
+if [ "$(id -u)" != "0" ]; then
+ echo "You must be root to install" 1>&2
+ exit 1
+fi
+ant all &&\
+cp ./bin/writelatex-git-bridge.jar /usr/local/sbin/ &&\
+cp ./bin/wlgb /etc/init.d/ &&\
+/usr/sbin/update-rc.d -f wlgb defaults
@@ -0,0 +1,7 @@
+ echo "You must be root to uninstall" 1>&2
+rm -f /usr/local/sbin/writelatex-git-bridge.jar &&\
+rm -f /etc/init.d/wlgb &&\
+/usr/sbin/update-rc.d -f wlgb remove