summaryrefslogtreecommitdiff
path: root/p/xmonad-contrib/debian/find-copyrights.sh
blob: bda0e924883a483837fe6a3e45931b2d268cda37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# Program to find all copyright holders in the xmonad-contrib package.
#
# The Debian copyrights file can be updated by deleting the current list
# of per file copyrights and then running:
#
#     debian/find-copyrights.sh >> debian/copyright

find . -name \*.hs |
	while read f ; do
		if test `grep -c Copyright $f` -ge 1 ; then
			echo $f | sed "s|.*XMonad|XMonad|"
			grep Copyright $f
			grep License $f
			echo
			fi
		done