File: use-packaged-publicsuffix.diff

package info (click to toggle)
links2 2.21-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,680 kB
  • sloc: ansic: 180,334; sh: 2,586; cpp: 1,450; makefile: 82; awk: 49; perl: 34
file content (15 lines) | stat: -rw-r--r-- 751 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Use packaged version of publicsuffix instead embedded one
Author: Axel Beckert <abe@debian.org>
Forwarded: not needed

--- a/suffix/gen-suffix
+++ b/suffix/gen-suffix
@@ -19,7 +19,7 @@
 	echo '/* Automatically generated by gen-suffix */'
 	echo
 	echo "static_const const_char_ptr domain_$file[] = {"
-	(cat public_suffix_list.dat; echo onion) | sed 's/[ 	][ 	]*$//' | grep -v '\/\/' | grep -v '^$' | $filter | LC_ALL=en_US.utf8 idn2 | sort -u | sed 's/^\(.*\)$/	"\1",/'
+	(cat /usr/share/publicsuffix/public_suffix_list.dat; echo onion) | sed 's/[ 	][ 	]*$//' | grep -v '\/\/' | grep -v '^$' | $filter | LC_ALL=en_US.utf8 idn2 | sort -u | sed 's/^\(.*\)$/	"\1",/'
 	echo "};"
 	) >../$file.inc
 	if grep -q '[^"/ ]\*' ../$file.inc; then