[CalendarServer-changes] [12946] CalendarServer/trunk/bin

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 18 13:01:08 PDT 2014


Revision: 12946
          http://trac.calendarserver.org//changeset/12946
Author:   wsanchez at apple.com
Date:     2014-03-18 13:01:07 -0700 (Tue, 18 Mar 2014)
Log Message:
-----------
Remove need for preamble.

Added Paths:
-----------
    CalendarServer/trunk/bin/calendarserver_backup
    CalendarServer/trunk/bin/calendarserver_bootstrap_database
    CalendarServer/trunk/bin/calendarserver_check_database_schema
    CalendarServer/trunk/bin/calendarserver_command_gateway
    CalendarServer/trunk/bin/calendarserver_config
    CalendarServer/trunk/bin/calendarserver_dashboard
    CalendarServer/trunk/bin/calendarserver_dbinspect
    CalendarServer/trunk/bin/calendarserver_dkimtool
    CalendarServer/trunk/bin/calendarserver_export
    CalendarServer/trunk/bin/calendarserver_icalendar_validate
    CalendarServer/trunk/bin/calendarserver_load_augmentdb
    CalendarServer/trunk/bin/calendarserver_manage_postgres
    CalendarServer/trunk/bin/calendarserver_manage_principals
    CalendarServer/trunk/bin/calendarserver_manage_push
    CalendarServer/trunk/bin/calendarserver_manage_timezones
    CalendarServer/trunk/bin/calendarserver_migrate_resources
    CalendarServer/trunk/bin/calendarserver_monitor_amp_notifications
    CalendarServer/trunk/bin/calendarserver_monitor_notifications
    CalendarServer/trunk/bin/calendarserver_monitor_work
    CalendarServer/trunk/bin/calendarserver_purge_attachments
    CalendarServer/trunk/bin/calendarserver_purge_events
    CalendarServer/trunk/bin/calendarserver_purge_principals
    CalendarServer/trunk/bin/calendarserver_shell
    CalendarServer/trunk/bin/calendarserver_upgrade
    CalendarServer/trunk/bin/calendarserver_verify_data
    CalendarServer/trunk/bin/py/
    CalendarServer/trunk/bin/py/calendarserver_backup
    CalendarServer/trunk/bin/py/calendarserver_bootstrap_database
    CalendarServer/trunk/bin/py/calendarserver_check_database_schema
    CalendarServer/trunk/bin/py/calendarserver_command_gateway
    CalendarServer/trunk/bin/py/calendarserver_config
    CalendarServer/trunk/bin/py/calendarserver_dashboard
    CalendarServer/trunk/bin/py/calendarserver_dbinspect
    CalendarServer/trunk/bin/py/calendarserver_dkimtool
    CalendarServer/trunk/bin/py/calendarserver_export
    CalendarServer/trunk/bin/py/calendarserver_icalendar_validate
    CalendarServer/trunk/bin/py/calendarserver_load_augmentdb
    CalendarServer/trunk/bin/py/calendarserver_manage_postgres
    CalendarServer/trunk/bin/py/calendarserver_manage_principals
    CalendarServer/trunk/bin/py/calendarserver_manage_push
    CalendarServer/trunk/bin/py/calendarserver_manage_timezones
    CalendarServer/trunk/bin/py/calendarserver_migrate_resources
    CalendarServer/trunk/bin/py/calendarserver_monitor_amp_notifications
    CalendarServer/trunk/bin/py/calendarserver_monitor_notifications
    CalendarServer/trunk/bin/py/calendarserver_monitor_work
    CalendarServer/trunk/bin/py/calendarserver_purge_attachments
    CalendarServer/trunk/bin/py/calendarserver_purge_events
    CalendarServer/trunk/bin/py/calendarserver_purge_principals
    CalendarServer/trunk/bin/py/calendarserver_shell
    CalendarServer/trunk/bin/py/calendarserver_upgrade
    CalendarServer/trunk/bin/py/calendarserver_verify_data

Removed Paths:
-------------
    CalendarServer/trunk/bin/_calendarserver_preamble.py
    CalendarServer/trunk/bin/calendarserver_backup
    CalendarServer/trunk/bin/calendarserver_bootstrap_database
    CalendarServer/trunk/bin/calendarserver_check_database_schema
    CalendarServer/trunk/bin/calendarserver_command_gateway
    CalendarServer/trunk/bin/calendarserver_config
    CalendarServer/trunk/bin/calendarserver_dashboard
    CalendarServer/trunk/bin/calendarserver_dbinspect
    CalendarServer/trunk/bin/calendarserver_dkimtool
    CalendarServer/trunk/bin/calendarserver_export
    CalendarServer/trunk/bin/calendarserver_icalendar_validate
    CalendarServer/trunk/bin/calendarserver_load_augmentdb
    CalendarServer/trunk/bin/calendarserver_manage_postgres
    CalendarServer/trunk/bin/calendarserver_manage_principals
    CalendarServer/trunk/bin/calendarserver_manage_push
    CalendarServer/trunk/bin/calendarserver_manage_timezones
    CalendarServer/trunk/bin/calendarserver_migrate_resources
    CalendarServer/trunk/bin/calendarserver_monitor_amp_notifications
    CalendarServer/trunk/bin/calendarserver_monitor_notifications
    CalendarServer/trunk/bin/calendarserver_monitor_work
    CalendarServer/trunk/bin/calendarserver_purge_attachments
    CalendarServer/trunk/bin/calendarserver_purge_events
    CalendarServer/trunk/bin/calendarserver_purge_principals
    CalendarServer/trunk/bin/calendarserver_shell
    CalendarServer/trunk/bin/calendarserver_upgrade
    CalendarServer/trunk/bin/calendarserver_verify_data

Deleted: CalendarServer/trunk/bin/_calendarserver_preamble.py
===================================================================
--- CalendarServer/trunk/bin/_calendarserver_preamble.py	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/_calendarserver_preamble.py	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,73 +0,0 @@
-##
-# Copyright (c) 2011-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-"""
-This module is the shared preamble for all calendarserver shell commands to set
-up their environment properly.  It's explicitly not installed along with the
-code, and is used only to initialize the environment for a development checkout
-of the code.
-"""
-
-import sys
-from os.path import dirname, abspath, join, split, exists
-from subprocess import Popen, PIPE
-
-
-
-def bootstrap():
-    """
-    If this is a development checkout, run the 'run' script to discover the
-    correct value for sys.path.
-    """
-
-    home = dirname(dirname(abspath(__file__)))
-    pythonWrapper = join(home, "bin", "python")
-
-    if not exists(pythonWrapper) or not exists(join(home, "setup.py")):
-        # This doesn't look enough like a development checkout; let's not mess
-        # with anything.
-        return
-
-    child = Popen(
-        (pythonWrapper, "-c", "import sys; print sys.path"),
-        stdout=PIPE
-    )
-    stdout, _ignore_stderr = child.communicate()
-    stdout = stdout.rstrip("\n")
-
-    try:
-        sysPath = eval(stdout)
-    except SyntaxError:
-        return
-
-    sys.path[0:0] = sysPath
-
-    noConfigOption = [
-        "calendarserver_bootstrap_database",
-        "calendarserver_load_augmentdb",
-        "calendarserver_manage_augments",
-        "calendarserver_manage_postgres",
-        "calendarserver_manage_timezones",
-        "icalendar_split",
-        "twistd", "trial",
-    ]
-
-    if split(sys.argv[0])[-1] not in noConfigOption:
-        sys.argv[1:1] = ["-f", join(home, "conf", "caldavd-dev.plist")]
-
-
-
-bootstrap()

Deleted: CalendarServer/trunk/bin/calendarserver_backup
===================================================================
--- CalendarServer/trunk/bin/calendarserver_backup	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_backup	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.backup import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_backup
===================================================================
--- CalendarServer/trunk/bin/calendarserver_backup	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_backup	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_backup
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_bootstrap_database
===================================================================
--- CalendarServer/trunk/bin/calendarserver_bootstrap_database	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_bootstrap_database	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2011-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.bootstrapdatabase import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_bootstrap_database
===================================================================
--- CalendarServer/trunk/bin/calendarserver_bootstrap_database	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_bootstrap_database	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_bootstrap_database
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_check_database_schema
===================================================================
--- CalendarServer/trunk/bin/calendarserver_check_database_schema	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_check_database_schema	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.checkdatabaseschema import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_check_database_schema
===================================================================
--- CalendarServer/trunk/bin/calendarserver_check_database_schema	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_check_database_schema	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_check_database_schema
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_command_gateway
===================================================================
--- CalendarServer/trunk/bin/calendarserver_command_gateway	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_command_gateway	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,38 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import os
-import sys
-
-# In OS X Server context, add to PATH to find Postgres utilities (initdb, pg_ctl)
-if "Server.app" in sys.argv[0]:
-    os.environ["PATH"] += ":" + os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), "bin")
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.gateway import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_command_gateway
===================================================================
--- CalendarServer/trunk/bin/calendarserver_command_gateway	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_command_gateway	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_command_gateway
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_config
===================================================================
--- CalendarServer/trunk/bin/calendarserver_config	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_config	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.config import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_config
===================================================================
--- CalendarServer/trunk/bin/calendarserver_config	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_config	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_config
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_dashboard
===================================================================
--- CalendarServer/trunk/bin/calendarserver_dashboard	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_dashboard	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,23 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-# This tool can run standalone, so does not need any special PYTHONPATH or preamble handling
-
-if __name__ == "__main__":
-    from calendarserver.tools.dashboard import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_dashboard
===================================================================
--- CalendarServer/trunk/bin/calendarserver_dashboard	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_dashboard	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_dashboard
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_dbinspect
===================================================================
--- CalendarServer/trunk/bin/calendarserver_dbinspect	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_dbinspect	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2011-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.dbinspect import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_dbinspect
===================================================================
--- CalendarServer/trunk/bin/calendarserver_dbinspect	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_dbinspect	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_dbinspect
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_dkimtool
===================================================================
--- CalendarServer/trunk/bin/calendarserver_dkimtool	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_dkimtool	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-##
-# Copyright (c) 2012-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.dkimtool import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_dkimtool
===================================================================
--- CalendarServer/trunk/bin/calendarserver_dkimtool	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_dkimtool	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_dkimtool
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_export
===================================================================
--- CalendarServer/trunk/bin/calendarserver_export	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_export	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.export import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_export
===================================================================
--- CalendarServer/trunk/bin/calendarserver_export	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_export	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_export
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_icalendar_validate
===================================================================
--- CalendarServer/trunk/bin/calendarserver_icalendar_validate	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_icalendar_validate	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2011-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.validcalendardata import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_icalendar_validate
===================================================================
--- CalendarServer/trunk/bin/calendarserver_icalendar_validate	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_icalendar_validate	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_icalendar_validate
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_load_augmentdb
===================================================================
--- CalendarServer/trunk/bin/calendarserver_load_augmentdb	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_load_augmentdb	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,32 +0,0 @@
-#!/usr/bin/env python
-##
-# Copyright (c) 2010-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.loadaugmentdb import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_load_augmentdb
===================================================================
--- CalendarServer/trunk/bin/calendarserver_load_augmentdb	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_load_augmentdb	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_load_augmentdb
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_manage_postgres
===================================================================
--- CalendarServer/trunk/bin/calendarserver_manage_postgres	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_manage_postgres	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-##
-# Copyright (c) 2010-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.managepostgres import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_manage_postgres
===================================================================
--- CalendarServer/trunk/bin/calendarserver_manage_postgres	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_manage_postgres	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_manage_postgres
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_manage_principals
===================================================================
--- CalendarServer/trunk/bin/calendarserver_manage_principals	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_manage_principals	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,32 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-    from calendarserver.tools.principals import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_manage_principals
===================================================================
--- CalendarServer/trunk/bin/calendarserver_manage_principals	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_manage_principals	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_manage_principals
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_manage_push
===================================================================
--- CalendarServer/trunk/bin/calendarserver_manage_push	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_manage_push	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.push import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_manage_push
===================================================================
--- CalendarServer/trunk/bin/calendarserver_manage_push	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_manage_push	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_manage_push
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_manage_timezones
===================================================================
--- CalendarServer/trunk/bin/calendarserver_manage_timezones	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_manage_timezones	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-##
-# Copyright (c) 2011-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.managetimezones import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_manage_timezones
===================================================================
--- CalendarServer/trunk/bin/calendarserver_manage_timezones	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_manage_timezones	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_manage_timezones
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_migrate_resources
===================================================================
--- CalendarServer/trunk/bin/calendarserver_migrate_resources	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_migrate_resources	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2010-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.resources import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_migrate_resources
===================================================================
--- CalendarServer/trunk/bin/calendarserver_migrate_resources	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_migrate_resources	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_migrate_resources
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_monitor_amp_notifications
===================================================================
--- CalendarServer/trunk/bin/calendarserver_monitor_amp_notifications	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_monitor_amp_notifications	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.ampnotifications import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_monitor_amp_notifications
===================================================================
--- CalendarServer/trunk/bin/calendarserver_monitor_amp_notifications	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_monitor_amp_notifications	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_monitor_amp_notifications
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_monitor_notifications
===================================================================
--- CalendarServer/trunk/bin/calendarserver_monitor_notifications	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_monitor_notifications	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2011-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.notifications import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_monitor_notifications
===================================================================
--- CalendarServer/trunk/bin/calendarserver_monitor_notifications	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_monitor_notifications	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_monitor_notifications
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_monitor_work
===================================================================
--- CalendarServer/trunk/bin/calendarserver_monitor_work	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_monitor_work	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,38 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import os
-import sys
-
-# In OS X Server context, add to PATH to find Postgres utilities (initdb, pg_ctl)
-if "Server.app" in sys.argv[0]:
-    os.environ["PATH"] += ":" + os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), "bin")
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.workitems import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_monitor_work
===================================================================
--- CalendarServer/trunk/bin/calendarserver_monitor_work	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_monitor_work	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_monitor_work
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_purge_attachments
===================================================================
--- CalendarServer/trunk/bin/calendarserver_purge_attachments	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_purge_attachments	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.purge import PurgeAttachmentsService
-    PurgeAttachmentsService.main()

Added: CalendarServer/trunk/bin/calendarserver_purge_attachments
===================================================================
--- CalendarServer/trunk/bin/calendarserver_purge_attachments	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_purge_attachments	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_purge_attachments
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_purge_events
===================================================================
--- CalendarServer/trunk/bin/calendarserver_purge_events	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_purge_events	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.purge import PurgeOldEventsService
-    PurgeOldEventsService.main()

Added: CalendarServer/trunk/bin/calendarserver_purge_events
===================================================================
--- CalendarServer/trunk/bin/calendarserver_purge_events	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_purge_events	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_purge_events
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_purge_principals
===================================================================
--- CalendarServer/trunk/bin/calendarserver_purge_principals	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_purge_principals	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.purge import PurgePrincipalService
-    PurgePrincipalService.main()

Added: CalendarServer/trunk/bin/calendarserver_purge_principals
===================================================================
--- CalendarServer/trunk/bin/calendarserver_purge_principals	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_purge_principals	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_purge_principals
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_shell
===================================================================
--- CalendarServer/trunk/bin/calendarserver_shell	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_shell	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.shell.terminal import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_shell
===================================================================
--- CalendarServer/trunk/bin/calendarserver_shell	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_shell	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_shell
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_upgrade
===================================================================
--- CalendarServer/trunk/bin/calendarserver_upgrade	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_upgrade	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.upgrade import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_upgrade
===================================================================
--- CalendarServer/trunk/bin/calendarserver_upgrade	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_upgrade	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_upgrade
___________________________________________________________________
Added: svn:executable
   + *

Deleted: CalendarServer/trunk/bin/calendarserver_verify_data
===================================================================
--- CalendarServer/trunk/bin/calendarserver_verify_data	2014-03-18 19:09:58 UTC (rev 12945)
+++ CalendarServer/trunk/bin/calendarserver_verify_data	2014-03-18 20:01:07 UTC (rev 12946)
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-##
-# Copyright (c) 2011-2014 Apple Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-
-import sys
-
-#PYTHONPATH
-
-if __name__ == "__main__":
-    if "PYTHONPATH" in globals():
-        sys.path.insert(0, PYTHONPATH)
-    else:
-        try:
-            import _calendarserver_preamble
-        except ImportError:
-            sys.exc_clear()
-
-    from calendarserver.tools.calverify import main
-    main()

Added: CalendarServer/trunk/bin/calendarserver_verify_data
===================================================================
--- CalendarServer/trunk/bin/calendarserver_verify_data	                        (rev 0)
+++ CalendarServer/trunk/bin/calendarserver_verify_data	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,31 @@
+#!/bin/sh
+# -*- sh-basic-offset: 2 -*-
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+set -e
+set -u
+
+wd="$(cd "$(dirname "$0")/.." && pwd)";
+
+. "${wd}/bin/_build.sh";
+
+do_setup="false";
+
+develop > /dev/null;
+
+exec "${python}" "${wd}/bin/py/$(basename "$0")" "$@";


Property changes on: CalendarServer/trunk/bin/calendarserver_verify_data
___________________________________________________________________
Added: svn:executable
   + *

Copied: CalendarServer/trunk/bin/py/calendarserver_backup (from rev 12934, CalendarServer/trunk/bin/calendarserver_backup)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_backup	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_backup	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.backup import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_bootstrap_database (from rev 12934, CalendarServer/trunk/bin/calendarserver_bootstrap_database)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_bootstrap_database	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_bootstrap_database	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2011-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.bootstrapdatabase import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_check_database_schema (from rev 12934, CalendarServer/trunk/bin/calendarserver_check_database_schema)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_check_database_schema	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_check_database_schema	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.checkdatabaseschema import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_command_gateway (from rev 12934, CalendarServer/trunk/bin/calendarserver_command_gateway)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_command_gateway	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_command_gateway	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.gateway import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_config (from rev 12934, CalendarServer/trunk/bin/calendarserver_config)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_config	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_config	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.config import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_dashboard (from rev 12934, CalendarServer/trunk/bin/calendarserver_dashboard)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_dashboard	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_dashboard	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.dashboard import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_dbinspect (from rev 12934, CalendarServer/trunk/bin/calendarserver_dbinspect)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_dbinspect	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_dbinspect	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2011-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.dbinspect import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_dkimtool (from rev 12934, CalendarServer/trunk/bin/calendarserver_dkimtool)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_dkimtool	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_dkimtool	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+##
+# Copyright (c) 2012-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.dkimtool import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_export (from rev 12934, CalendarServer/trunk/bin/calendarserver_export)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_export	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_export	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.export import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_icalendar_validate (from rev 12934, CalendarServer/trunk/bin/calendarserver_icalendar_validate)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_icalendar_validate	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_icalendar_validate	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2011-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.validcalendardata import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_load_augmentdb (from rev 12934, CalendarServer/trunk/bin/calendarserver_load_augmentdb)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_load_augmentdb	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_load_augmentdb	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+##
+# Copyright (c) 2010-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.loadaugmentdb import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_manage_postgres (from rev 12934, CalendarServer/trunk/bin/calendarserver_manage_postgres)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_manage_postgres	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_manage_postgres	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+##
+# Copyright (c) 2010-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.managepostgres import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_manage_principals (from rev 12934, CalendarServer/trunk/bin/calendarserver_manage_principals)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_manage_principals	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_manage_principals	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.principals import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_manage_push (from rev 12934, CalendarServer/trunk/bin/calendarserver_manage_push)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_manage_push	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_manage_push	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.push import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_manage_timezones (from rev 12934, CalendarServer/trunk/bin/calendarserver_manage_timezones)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_manage_timezones	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_manage_timezones	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+##
+# Copyright (c) 2011-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.managetimezones import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_migrate_resources (from rev 12934, CalendarServer/trunk/bin/calendarserver_migrate_resources)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_migrate_resources	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_migrate_resources	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2010-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.resources import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_monitor_amp_notifications (from rev 12934, CalendarServer/trunk/bin/calendarserver_monitor_amp_notifications)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_monitor_amp_notifications	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_monitor_amp_notifications	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.ampnotifications import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_monitor_notifications (from rev 12934, CalendarServer/trunk/bin/calendarserver_monitor_notifications)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_monitor_notifications	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_monitor_notifications	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2011-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.notifications import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_monitor_work (from rev 12934, CalendarServer/trunk/bin/calendarserver_monitor_work)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_monitor_work	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_monitor_work	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.workitems import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_purge_attachments (from rev 12934, CalendarServer/trunk/bin/calendarserver_purge_attachments)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_purge_attachments	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_purge_attachments	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.purge import PurgeAttachmentsService
+    PurgeAttachmentsService.main()

Copied: CalendarServer/trunk/bin/py/calendarserver_purge_events (from rev 12934, CalendarServer/trunk/bin/calendarserver_purge_events)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_purge_events	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_purge_events	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.purge import PurgeOldEventsService
+    PurgeOldEventsService.main()

Copied: CalendarServer/trunk/bin/py/calendarserver_purge_principals (from rev 12934, CalendarServer/trunk/bin/calendarserver_purge_principals)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_purge_principals	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_purge_principals	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.purge import PurgePrincipalService
+    PurgePrincipalService.main()

Copied: CalendarServer/trunk/bin/py/calendarserver_shell (from rev 12934, CalendarServer/trunk/bin/calendarserver_shell)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_shell	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_shell	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.shell.terminal import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_upgrade (from rev 12934, CalendarServer/trunk/bin/calendarserver_upgrade)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_upgrade	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_upgrade	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.upgrade import main
+    main()

Copied: CalendarServer/trunk/bin/py/calendarserver_verify_data (from rev 12934, CalendarServer/trunk/bin/calendarserver_verify_data)
===================================================================
--- CalendarServer/trunk/bin/py/calendarserver_verify_data	                        (rev 0)
+++ CalendarServer/trunk/bin/py/calendarserver_verify_data	2014-03-18 20:01:07 UTC (rev 12946)
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2011-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    try:
+        sys.path.insert(0, PYTHONPATH)
+    except NameError:
+        sys.exc_clear()
+
+    from calendarserver.tools.calverify import main
+    main()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140318/166fa1fa/attachment-0001.html>


More information about the calendarserver-changes mailing list