From 302cb7dc7fda060c29856ddd78b392844bf07e41 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Mon, 10 Aug 2015 11:45:59 -0400 Subject: [PATCH] Move boilerplate from hooks/ to hack/ Hooks seems like they should be hooks. Not sure hack makes a lot more sense, but it has more stuff already. --- {hooks => hack/boilerplate}/boilerplate.go.txt | 0 {hooks => hack/boilerplate}/boilerplate.py | 0 {hooks => hack/boilerplate}/boilerplate.py.txt | 0 {hooks => hack/boilerplate}/boilerplate.sh.txt | 0 hack/build-ui.sh | 2 +- hack/update-generated-conversions.sh | 2 +- hack/update-generated-deep-copies.sh | 2 +- hack/verify-boilerplate.sh | 2 +- 8 files changed, 4 insertions(+), 4 deletions(-) rename {hooks => hack/boilerplate}/boilerplate.go.txt (100%) rename {hooks => hack/boilerplate}/boilerplate.py (100%) rename {hooks => hack/boilerplate}/boilerplate.py.txt (100%) rename {hooks => hack/boilerplate}/boilerplate.sh.txt (100%) diff --git a/hooks/boilerplate.go.txt b/hack/boilerplate/boilerplate.go.txt similarity index 100% rename from hooks/boilerplate.go.txt rename to hack/boilerplate/boilerplate.go.txt diff --git a/hooks/boilerplate.py b/hack/boilerplate/boilerplate.py similarity index 100% rename from hooks/boilerplate.py rename to hack/boilerplate/boilerplate.py diff --git a/hooks/boilerplate.py.txt b/hack/boilerplate/boilerplate.py.txt similarity index 100% rename from hooks/boilerplate.py.txt rename to hack/boilerplate/boilerplate.py.txt diff --git a/hooks/boilerplate.sh.txt b/hack/boilerplate/boilerplate.sh.txt similarity index 100% rename from hooks/boilerplate.sh.txt rename to hack/boilerplate/boilerplate.sh.txt diff --git a/hack/build-ui.sh b/hack/build-ui.sh index f85364f1ff9..c04b786d02a 100755 --- a/hack/build-ui.sh +++ b/hack/build-ui.sh @@ -44,7 +44,7 @@ function kube::hack::build_ui() { go-bindata -nocompress -o "${output_file}" -prefix ${PWD} -pkg "${pkg}" "${src}" local year=$(date +%Y) - cat hooks/boilerplate.go.txt | sed "s/YEAR/${year}/" > "${TMP_DATAFILE}" + cat hack/boilerplate/boilerplate.go.txt | sed "s/YEAR/${year}/" > "${TMP_DATAFILE}" echo -e "// generated by hack/build-ui.sh; DO NOT EDIT\n" >> "${TMP_DATAFILE}" cat "${output_file}" >> "${TMP_DATAFILE}" diff --git a/hack/update-generated-conversions.sh b/hack/update-generated-conversions.sh index 7df31ca18f8..f76aeafe117 100755 --- a/hack/update-generated-conversions.sh +++ b/hack/update-generated-conversions.sh @@ -29,7 +29,7 @@ function generate_version() { echo "Generating for version ${version}" - sed 's/YEAR/2015/' hooks/boilerplate.go.txt > $TMPFILE + sed 's/YEAR/2015/' hack/boilerplate/boilerplate.go.txt > $TMPFILE cat >> $TMPFILE < $TMPFILE + sed 's/YEAR/2015/' hack/boilerplate/boilerplate.go.txt > $TMPFILE cat >> $TMPFILE <