File: mkpubsuffixcc

package info (click to toggle)
pdns-recursor 4.0.4-1+deb9u3~bpo8+1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 5,484 kB
  • sloc: cpp: 36,380; sh: 11,771; makefile: 305; xml: 37
file content (8 lines) | stat: -rwxr-xr-x 219 bytes parent folder | download
1
2
3
4
5
6
7
8
#!/bin/sh

(echo "const char* g_pubsuffix[]={"; 
	for a in $(grep -v "//" effective_tld_names.dat  | grep \\. | egrep "^[.0-9a-z-]*$" ; echo "co.za" ; echo "co.il" )
	do 
		echo \"$a\",
	done 
echo "0};") > pubsuffix.cc