setup-commit-queue.sh 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/bin/sh
  2. # Copyright (c) 2013 Google Inc. All rights reserved.
  3. # Copyright (C) 2013 Apple Inc. All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms, with or without
  6. # modification, are permitted provided that the following conditions are
  7. # met:
  8. #
  9. # * Redistributions of source code must retain the above copyright
  10. # notice, this list of conditions and the following disclaimer.
  11. # * Redistributions in binary form must reproduce the above
  12. # copyright notice, this list of conditions and the following disclaimer
  13. # in the documentation and/or other materials provided with the
  14. # distribution.
  15. #
  16. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  17. # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  18. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  19. # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  20. # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  21. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  22. # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  23. # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  25. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  26. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  27. CWD="$(pwd)"
  28. cd "$(dirname "$0")"
  29. QUEUE_TYPE=commit-queue
  30. BUGZILLA_USERNAME=commit-queue@webkit.org
  31. read -s -p "Bugzilla Password: " BUGZILLA_PASSWORD && echo
  32. SVN_USERNAME=commit-queue@webkit.org
  33. read -s -p "Subversion Password: " SVN_PASSWORD && echo
  34. svn checkout http://svn.webkit.org/repository/webkit/trunk/Tools/EWSTools tools
  35. bash tools/configure-svn-config.sh
  36. bash tools/configure-svn-auth.sh $SVN_USERNAME $SVN_PASSWORD
  37. echo "Cloning WebKit git repository, process takes ~30m."
  38. echo "Note: No status output will be shown via remote pipe."
  39. git clone git://git.webkit.org/WebKit.git WebKit
  40. cd WebKit
  41. cat >> .git/config <<EOF
  42. [bugzilla]
  43. username = $BUGZILLA_USERNAME
  44. password = $BUGZILLA_PASSWORD
  45. [svn-remote "svn"]
  46. url = http://svn.webkit.org/repository/webkit
  47. fetch = trunk:refs/remotes/origin/master
  48. [user]
  49. email = commit-queue@webkit.org
  50. name = Commit Queue
  51. EOF