gnu-social/vendor/openid/php-openid/admin/docblocks.pl
Diogo Cordeiro 2a06261f75 [CORE][COMPOSER] Move extlib packages with immediate composer correspondent to composer dependencies
This adds a composer.json for all dependencies that are available
2019-08-03 17:47:24 +01:00

27 lines
421 B
Perl

#!/usr/bin/env perl -w
use strict;
my $filename = $ARGV[0];
if (!$filename) {
print "Usage: docblocks.pl <filename>\n";
exit(1);
}
my %allowed = ("" => 1,
"<?php" => 1);
open(HANDLE, "<", $filename) or die "Cannot open $filename\n";
while (<HANDLE>) {
chomp;
if ($_ =~ /\/\*\*/) {
exit(0);
} elsif (!$allowed{$_}) {
print $filename."\n";
exit(1);
}
}