From 74d7844b64cad2fb5836dba6899d25b9187d2906 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Tue, 4 May 2010 22:06:16 +0100 Subject: [PATCH] hack fix to crash --- Makefile | 2 +- SparkleShare | 57 ---------------------------------------------------- 2 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 SparkleShare diff --git a/Makefile b/Makefile index b9c7c0fa..92c3d35c 100644 --- a/Makefile +++ b/Makefile @@ -24,4 +24,4 @@ uninstall: rm ~/.config/autostart/sparkleshare.desktop clean: - rm src/sparkleshare.exe + rm SparkleShare/bin/Debug/SparkleShare.exe diff --git a/SparkleShare b/SparkleShare deleted file mode 100644 index 5ecfc3a8..00000000 --- a/SparkleShare +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -# Create a directory to save the pid to -mkdir -p /tmp/sparkleshare/ - -if [[ "$1" == "start" ]]; then - if [ -e "/tmp/sparkleshare/sparkleshare.pid" ]; then - echo "SparkleShare is already running." - else - echo -n "Starting SparkleShare..." - - # Start SparkleShare in the background and save the pid - mono /usr/local/share/sparkleshare/SparkleShare.exe $2 & - PID=$! - echo $PID > /tmp/sparkleshare/sparkleshare.pid - echo " Done." - fi -fi - -if [[ "$1" == "stop" ]]; then - if [ -e "/tmp/sparkleshare/sparkleshare.pid" ]; then - echo -n "Stopping SparkleShare..." - kill `cat /tmp/sparkleshare/sparkleshare.pid` - rm -f /tmp/sparkleshare/sparkleshare.pid - echo " Done." - else - echo "SparkleShare isn't running." - fi -fi - -if [[ "$1" == "restart" ]]; then - if [ -e "/tmp/sparkleshare/sparkleshare.pid" ]; then - echo -n "Stopping SparkleShare..." - kill `cat /tmp/sparkleshare/sparkleshare.pid` - rm -f /tmp/sparkleshare/sparkleshare.pid - echo " Done." - else - echo "SparkleShare isn't running." - fi - - if [ -e "/tmp/sparkleshare/sparkleshare.pid" ]; then - echo "SparkleShare is already running." - else - echo -n "Starting SparkleShare..." - - # Start SparkleShare in the background and save the pid - mono /usr/local/share/sparkleshare/SparkleShare.exe $2 & - PID=$! - echo $PID > /tmp/sparkleshare/sparkleshare.pid - echo " Done." - fi -fi - - -if [[ "$1" == "--help" ]]; then - mono /usr/local/share/sparkleshare/SparkleShare.exe --help -fi