Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

linux launcher script and install script

  • Loading branch information...
commit aa1ecaaf4062a775dfd719104bc04dce6102b2f1 1 parent 8be7653
Bill Fraser authored
Showing with 27 additions and 0 deletions.
  1. +12 −0 fs.sh
  2. +15 −0 install.sh
12 fs.sh
View
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+PREFIX=/usr/local
+MONO=/usr/bin/mono
+
+if [ ! -x $MONO ]; then
+ echo "Fatal: this program requires Mono"
+ exit -1
+fi
+
+exec $MONO $PREFIX/lib/foosync/fs.exe "$@"
+
15 install.sh
View
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+PREFIX=/usr/local
+
+if [ `id -u` != "0" ]; then
+ echo "This script must be run as root."
+ exit -1
+fi
+
+mkdir -p $PREFIX/lib/foosync
+mkdir -p $PREFIX/bin
+
+cp -v lib/* $PREFIX/lib/foosync
+cp -v fs.sh $PREFIX/bin/fs
+
Please sign in to comment.
Something went wrong with that request. Please try again.