]>
The Tcpdump Group git mirrors - libpcap/blob - gen_version_c.sh
4 if grep GIT
"$1" >/dev
/null
7 echo $ver |
tr -d '\012'
15 echo "Usage: gen_version_c.sh <version file> <output file>" 1>&2
18 version_string
=`print_version_string "$1"`
19 echo '#include <pcap/funcattrs.h>' > "$2"
20 echo 'PCAP_API_DEF' >> "$2"
21 echo "$version_string" |
sed -e 's/.*/char pcap_version[] = "&";/' >> "$2"