1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-13 09:00:26 +00:00
janet/prependlicense

14 lines
262 B
Plaintext
Raw Normal View History

2017-04-18 02:36:44 +00:00
#!/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