Revision: 6466 http://trac.macosforge.org/projects/calendarserver/changeset/6466 Author: wsanchez@apple.com Date: 2010-10-25 13:21:13 -0700 (Mon, 25 Oct 2010) Log Message: ----------- Prompt to copy test plist is no dev plist and stdin is a terminal. Modified Paths: -------------- CalendarServer/trunk/run Modified: CalendarServer/trunk/run =================================================================== --- CalendarServer/trunk/run 2010-10-25 18:48:18 UTC (rev 6465) +++ CalendarServer/trunk/run 2010-10-25 20:21:13 UTC (rev 6466) @@ -120,7 +120,22 @@ echo ""; echo " cp conf/${DAVD}davd-test.plist conf/${DAVD}davd-dev.plist"; echo ""; - exit 1; + if [ -t 0 ]; then + # Interactive shell + echo -n "Would you like to copy the test configuration now? [y/n]"; + read answer; + case "${answer}" in + y|yes|Y|YES|Yes) + echo "Copying test cofiguration..."; + cp "${wd}/conf/${DAVD}davd-test.plist" "${wd}/conf/${DAVD}davd-dev.plist"; + ;; + *) + exit 1; + ;; + esac; + else + exit 1; + fi; fi; cd "${wd}";
participants (1)
-
source_changes@macosforge.org