File: newlicense

package info (click to toggle)
bsh 1.1alpha5-1
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 2,336 kB
  • ctags: 2,083
  • sloc: java: 16,095; makefile: 134; sh: 51
file content (21 lines) | stat: -rw-r--r-- 263 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

mkdir -p bak

convert() 
{
	cp $f bak
	cat /tmp/License.txt > $f
	tail +15 bak/$f >> $f
}

for f in $*
do
	if head -3 $f | grep -s '^ \*  This file is part of the BeanShell '>/dev/null
	then
		convert $f
	else
		echo "No license in file: $f"
	fi
done