mirror of https://github.com/rwxrob/dot
Add gocopyright
parent
5577b37122
commit
515b7aaf9f
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
addcopyright() {
|
||||||
|
file=$(tempfile)
|
||||||
|
cat <(echo "// Copyright 2022 Robert S. Muhlestein
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
") "$1" >> "$file"
|
||||||
|
mv "$file" "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
for f in "$@"; do addcopyright "$f"; done
|
Loading…
Reference in New Issue