mirror of
https://github.com/janet-lang/janet
synced 2024-12-25 07:50:27 +00:00
14 lines
262 B
Bash
Executable File
14 lines
262 B
Bash
Executable File
#!/bin/bash
|
|
shopt -s nullglob
|
|
for p in code/*.c code/*.h client/*.c include/*.h
|
|
do
|
|
for f in $p; do
|
|
echo "Prepending license to $f..."
|
|
f2="${f}_tmp"
|
|
cat scratch > $f2
|
|
cat $f >> $f2
|
|
rm $f
|
|
mv $f2 $f
|
|
done
|
|
done
|