[CalendarServer-changes] [6466] CalendarServer/trunk/run
source_changes at macosforge.org
source_changes at macosforge.org
Mon Oct 25 13:21:16 PDT 2010
Revision: 6466
http://trac.macosforge.org/projects/calendarserver/changeset/6466
Author: wsanchez at 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}";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101025/2e9a0040/attachment.html>
More information about the calendarserver-changes
mailing list