We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc3d517 commit 709aefcCopy full SHA for 709aefc
scripts/delta
@@ -59,8 +59,20 @@ $bcontribs = `git show $start:docs/THANKS | grep -c '^[^ ]'`;
59
$contribs = $acontribs - $bcontribs;
60
61
# number of setops:
62
-$asetopts=`grep '^ CURLOPT(' include/curl/curl.h | grep -cv OBSOLETE`;
63
-$bsetopts=`git show $start:include/curl/curl.h | grep '^ CURLOPT(' | grep -cv OBSOLETE`;
+sub setopts {
+ my ($f)=@_;
64
+ open(H, "$f");
65
+ my $opts;
66
+ while(<H>) {
67
+ if(/^ CURLOPT(|DEPRECATED)\(/ && ($_ !~ /OBSOLETE/)) {
68
+ $opts++;
69
+ }
70
71
+ close(H);
72
+ return $opts;
73
+}
74
+$asetopts = setopts("<include/curl/curl.h");
75
+$bsetopts = setopts("git show $start:include/curl/curl.h|");
76
$nsetopts = $asetopts - $bsetopts;
77
78
# Number of command line options:
0 commit comments