From 6237ab3e66f271c2eb11e64f79630c521855b54d Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 26 Feb 2012 22:41:42 +0000 Subject: [PATCH] Add an 'open' argument to the sparkleshare command to handle sparkleshare:// --- README.md | 1 + SparkleShare/sparkleshare.in | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index b84a8424..1ee2d861 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ information see the LICENSE file or visit http://www.gnu.org/licenses/gpl-3.0.ht Requirements: + - curl - git >= 1.7.3 - gtk-sharp2 - mono-core >= 2.8 diff --git a/SparkleShare/sparkleshare.in b/SparkleShare/sparkleshare.in index f79db46b..7480b1fc 100755 --- a/SparkleShare/sparkleshare.in +++ b/SparkleShare/sparkleshare.in @@ -61,6 +61,9 @@ case $1 in stop start ;; + open|--open) + curl -o ~/SparkleShare/`date -u +%N`.xml `echo $2 | sed s/sparkleshare:/https:/` + ;; help|--help|-h) mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" --help ;;