mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 06:14:08 -05:00
12 lines
269 B
Bash
Executable File
12 lines
269 B
Bash
Executable File
#!/bin/sh
|
|
|
|
files="$(find . -type f -name '*.rs' | grep -v 'target/')"
|
|
|
|
echo "$files" | while read -r file ; do
|
|
if ! grep -q '/* This file is part of DarkFi ' "$file"; then
|
|
tmp="$(mktemp)"
|
|
cat contrib/license.header "$file" > "$tmp"
|
|
mv -v "$tmp" "$file"
|
|
fi
|
|
done
|