Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
initial caldecott commit
Browse files Browse the repository at this point in the history
Change-Id: I5056e43e0aea5d8379423b82ac2c1a0416bb4927
  • Loading branch information
Patrick Bozeman committed Oct 20, 2011
0 parents commit 3828de0
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Gemfile.lock
.build
*.gem
.DS_Store
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -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 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# caldecott

TBD
19 changes: 19 additions & 0 deletions caldecott.gemspec
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions git/hooks-wrapper
Original file line number Diff line number Diff line change
@@ -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 changes: 28 additions & 0 deletions git/install-hook-symlinks
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions git/tracked_hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions lib/caldecott/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2009-2011 VMware, Inc.

module Caldecott
VERSION = '0.0.1'
end

0 comments on commit 3828de0

Please sign in to comment.