mirror of
https://github.com/vavr-io/vavr.git
synced 2024-10-23 08:19:44 +08:00
15 lines
495 B
Bash
Executable File
15 lines
495 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# New-year script, tested on a Mac
|
|
|
|
# Prevent sed error 'illegal byte sequence'
|
|
export LC_ALL=C LC_CTYPE=C LANG=C
|
|
|
|
newYear=$(date +'%Y')
|
|
echo "Updating copyright notice to $newYear"
|
|
|
|
# Exclude specific directories: -type d \( -path ./.git -o -path ./.ide \) -prune -o
|
|
# Make sed work on Mac: sed -e
|
|
# Prevent making backups: -i ''
|
|
find . -type d \( -path ./.git -o -path ./gradle \) -prune -o -type f -print0 | xargs -0 sed -i '' -e "s/Copyright 2024 Vavr/Copyright $newYear Vavr/"
|