Skip to content

Commit

Permalink
Move boilerplate from hooks/ to hack/
Browse files Browse the repository at this point in the history
Hooks seems like they should be hooks. Not sure hack makes a lot more
sense, but it has more stuff already.
  • Loading branch information
eparis committed Aug 11, 2015
1 parent 5aeebb4 commit 302cb7d
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion hack/build-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down
2 changes: 1 addition & 1 deletion hack/update-generated-conversions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF
package ${version}
Expand Down
2 changes: 1 addition & 1 deletion hack/update-generated-deep-copies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,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 <<EOF
package ${version}
Expand Down
2 changes: 1 addition & 1 deletion hack/verify-boilerplate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -o nounset
set -o pipefail

KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
boiler="${KUBE_ROOT}/hooks/boilerplate.py"
boiler="${KUBE_ROOT}/hack/boilerplate/boilerplate.py"

cd ${KUBE_ROOT}

Expand Down

0 comments on commit 302cb7d

Please sign in to comment.