Commit 9e99f995 authored by Dawn Chen's avatar Dawn Chen

Fix the boilerplate issue for header with "Copyright 2015".

parent f718957a
......@@ -28,9 +28,9 @@ fi
LINES=$(cat "${REF_FILE}" | wc -l | tr -d ' ')
if [[ "${EXT}" == "go" ]]; then
# remove build tags from the top of Go file
DIFFER=$(cat "${FILE}" | sed '/\/\*/,$!d' | head "-${LINES}" | diff -q - "${REF_FILE}")
DIFFER=$(cat "${FILE}" | sed '/\/\*/,$!d' | sed 's/2015/2014/g' | head "-${LINES}" | diff -q - "${REF_FILE}")
else
DIFFER=$(head "-${LINES}" "${FILE}" | diff -q - "${REF_FILE}")
DIFFER=$(head "-${LINES}" "${FILE}" | sed 's/2015/2014/g' | diff -q - "${REF_FILE}")
fi
if [[ -z "${DIFFER}" ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment