updated build script

This commit is contained in:
Carlos Salguero
2019-09-07 15:10:06 -03:00
parent b5ee6cfc9f
commit 8af89a638d

View File

@@ -186,7 +186,11 @@ update_copyright_year() {
echo -n "Updating copyright year in tools to $YEAR ... "
cd $BRANCH/bin
for tool_file in *; do
echo "Updating $tool_file"
# Skip checking binary files (golang binaries)
file bin/pt-pg-summary | grep -q "ELF"
if [ $? -eq 0 ]; then
continue
fi
local copyright="$(grep "[0-9] Percona LLC and/or its affiliates" $tool_file)"
local new_copyright="$(../util/new-copyright-year "$YEAR" "$copyright")"
if [ $? -ne 0 ]; then