Script to add LICENSE headers to all files
This commit is contained in:
parent
edb25da877
commit
c356bd33ac
18
licensify
Executable file
18
licensify
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
#
|
||||
|
||||
for FILENAME in $*; do
|
||||
if [ ! -f "$FILENAME" ]; then
|
||||
continue
|
||||
fi
|
||||
echo -n "${FILENAME}..."
|
||||
grep "This file is part of luksrku" "$FILENAME" >/dev/null 2>&1
|
||||
if [ "$?" == "0" ]; then
|
||||
echo "Already tagged."
|
||||
else
|
||||
cat LICENSE-header "${FILENAME}" >tmp
|
||||
mv tmp "${FILENAME}"
|
||||
echo "Tagged!"
|
||||
fi
|
||||
done
|
Loading…
Reference in New Issue
Block a user