summaryrefslogtreecommitdiffstats
path: root/debian/lintian-to-copyright.sh
diff options
context:
space:
mode:
Diffstat (limited to 'debian/lintian-to-copyright.sh')
-rwxr-xr-xdebian/lintian-to-copyright.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/lintian-to-copyright.sh b/debian/lintian-to-copyright.sh
new file mode 100755
index 000000000..9a766da35
--- /dev/null
+++ b/debian/lintian-to-copyright.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Pipe the output of lintian into this.
+sed -ne 's/.* file-without-copyright-information //p' | cut -d/ -f1-2 | sort -u | while read x; do
+ /usr/share/cargo/scripts/guess-crate-copyright "$x"
+done