We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d304e6 commit 3ad5dfeCopy full SHA for 3ad5dfe
.ide/idea-settings.jar
19 Bytes
update_copyright.sh
@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+
3
+# ==
4
+# == New-year script, tested on a Mac
5
6
7
+# Prevent sed error 'illegal byte sequence'
8
+export LC_ALL=C LC_CTYPE=C LANG=C
9
10
+newYear=`date +'%Y'`
11
+echo "Updating copyright notice to $newYear"
12
13
+# Exclude specific directories: -type d \( -path ./.git -o -path ./.ide \) -prune -o
14
+# Make sed work on Mac: sed -e
15
+# Prevent making backups: -i ''
16
+find . -type d \( -path ./.git -o -path ./.ide \) -prune -o -type f -print0 | xargs -0 sed -i '' -e "s/Copyright 2014-2017 Vavr/Copyright 2014-$newYear Vavr/"
0 commit comments