mirror of
https://git.ghostchain.io/proxmio/ghost-node.git
synced 2025-12-27 03:09:56 +00:00
inital commit, which is clearly not initial
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
16
scripts/header-prefixer.sh
Executable file
16
scripts/header-prefixer.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
ROOT_PATH="${1:-}"
|
||||
FILES=$(find ./"$ROOT_PATH" -type f -name '*.rs')
|
||||
|
||||
for f in $FILES; do
|
||||
if (grep License $f); then
|
||||
echo "[-] Already prefixed $f"
|
||||
else
|
||||
printf "\n" | cat file_header.txt - $f > $f.new
|
||||
mv $f.new $f
|
||||
echo "[+] License header copied to $f"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "[+] All files have been processed"
|
||||
Reference in New Issue
Block a user