1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-25 07:50:27 +00:00
janet/prependlicense
Calvin Rose 7a2ec82daf License
2017-04-17 22:36:44 -04:00

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