Browse Source

Add and configure developer setup helper scripts

Configure GitSetup scripts for CMake.  Run them from a single
Utilities/SetupForDevelopment.sh script.
Brad King 14 years ago
parent
commit
d2c3686a08
2 changed files with 22 additions and 0 deletions
  1. 9 0
      Utilities/GitSetup/config
  2. 13 0
      Utilities/SetupForDevelopment.sh

+ 9 - 0
Utilities/GitSetup/config

@@ -0,0 +1,9 @@
+[hooks]
+	url = http://cmake.org/cmake.git
+[ssh]
+	host = cmake.org
+	key = id_git_cmake
+	request-url = https://www.kitware.com/Admin/SendPassword.cgi
+[stage]
+        url = git://cmake.org/stage/cmake.git
+        pushurl = [email protected]:stage/cmake.git

+ 13 - 0
Utilities/SetupForDevelopment.sh

@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+cd "${BASH_SOURCE%/*}/.." &&
+Utilities/GitSetup/setup-user && echo &&
+Utilities/GitSetup/setup-hooks && echo &&
+Utilities/GitSetup/setup-stage && echo &&
+(Utilities/GitSetup/setup-ssh ||
+ echo 'Failed to setup SSH.  Run this again to retry.') && echo &&
+Utilities/GitSetup/tips
+
+# Rebase master by default
+git config rebase.stat true
+git config branch.master.rebase true