Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial caldecott commit

Change-Id: I5056e43e0aea5d8379423b82ac2c1a0416bb4927
  • Loading branch information...
commit 3828de045a4c6e0d2597d938e0c2900c16f09a06 0 parents
Patrick Bozeman authored
4 .gitignore
@@ -0,0 +1,4 @@
+Gemfile.lock
+.build
+*.gem
+.DS_Store
24 LICENSE
@@ -0,0 +1,24 @@
+Copyright (c) 2010-2011 VMware Inc, All Rights Reserved
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+This software downloads additional open source software components upon install
+that are distributed under separate terms and conditions. Please see the license
+information provided in the individual software components for more information.
+
10 NOTICE
@@ -0,0 +1,10 @@
+Cloud Foundry
+Copyright (c) [2009-2011] VMware, Inc. All Rights Reserved.
+
+This product is licensed to you under the Apache License, Version 2.0 (the "License").
+You may not use this product except in compliance with the License.
+
+This product includes a number of subcomponents with
+separate copyright notices and license terms. Your use of these
+subcomponents is subject to the terms and conditions of the
+subcomponent's license, as noted in the LICENSE file.
3  README.md
@@ -0,0 +1,3 @@
+# caldecott
+
+TBD
19 caldecott.gemspec
@@ -0,0 +1,19 @@
+
+$:.unshift File.expand_path("../lib", __FILE__)
+
+require 'caldecott/version'
+
+spec = Gem::Specification.new do |s|
+ s.name = "caldecott"
+ s.version = Caldecott::VERSION
+ s.author = "VMware"
+ s.email = "support@vmware.com"
+ s.homepage = "http://vmware.com"
+ s.description = s.summary = "TBD"
+
+ s.platform = Gem::Platform::RUBY
+ s.extra_rdoc_files = ["README.md", "LICENSE"]
+
+ s.require_path = 'lib'
+ s.files = %w(LICENSE README.md) + Dir.glob("{lib}/**/*")
+end
9 git/hooks-wrapper
@@ -0,0 +1,9 @@
+#!/bin/bash
+if [ -x $0.local ]; then
+ $0.local "$@" || exit $?
+fi
+
+REPO_DIR=$(dirname $GIT_DIR)
+if [ -x $REPO_DIR/git/tracked_hooks/$(basename $0) ]; then
+ $REPO_DIR/git/tracked_hooks/$(basename $0) "$@" || exit $?
+fi
28 git/install-hook-symlinks
@@ -0,0 +1,28 @@
+#!/bin/bash
+HOOK_NAMES="
+applypatch-msg
+pre-applypatch
+post-applypatch
+pre-commit
+prepare-commit-msg
+commit-msg
+post-commit
+pre-rebase
+post-checkout
+post-merge
+pre-receive
+update
+post-receive
+post-update
+pre-auto-gc
+"
+
+HOOK_SRC=$(dirname $0)
+HOOK_DIR=$(git rev-parse --git-dir)/hooks || exit $?
+
+for hook in $HOOK_NAMES; do
+ if [ ! -h $HOOK_DIR/$hook -a -x $HOOK_DIR/$hook ]; then
+ mv $HOOK_DIR/$hook $HOOK_DIR/$hook.local
+ fi
+ ln -s -f ../../git/hooks-wrapper $HOOK_DIR/$hook
+done
11 git/tracked_hooks/pre-commit
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if git rev-parse --verify HEAD >/dev/null 2>&1
+then
+ against=HEAD
+else
+ # Initial commit: diff against an empty tree object
+ against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
+fi
+
+exec git diff-index --check --cached $against --
5 lib/caldecott/version.rb
@@ -0,0 +1,5 @@
+# Copyright (c) 2009-2011 VMware, Inc.
+
+module Caldecott
+ VERSION = '0.0.1'
+end
Please sign in to comment.
Something went wrong with that request. Please try again.