Diff

squishy @ 158:068176069dfa

squishy: Add --prosody option to specify a path to a Prosody checkout to use when squishing
author Matthew Wild <mwild1@gmail.com>
date Tue, 30 Nov 2010 13:23:24 +0000
parent 157:7c47e5639c00
child 161:b177bcea2006
line wrap: on
line diff
--- a/squishy	Sat Nov 27 18:48:41 2010 +0000
+++ b/squishy	Tue Nov 30 13:23:24 2010 +0000
@@ -8,7 +8,11 @@
 Module "lib.adhoc"              "libs/adhoc.lib.lua"
 
 -- Prosody libraries
-AutoFetchURL "http://prosody.im/tip/?"
+if not GetOption("prosody") then
+	AutoFetchURL "http://prosody.im/tip/?"
+else
+	AutoFetchURL(GetOption("prosody").."/?")
+end
 
 Module "util.stanza"		"util/stanza.lua"
 Module "util.timer"		"util/timer.lua"