diff options
Diffstat (limited to 'tools/make-sminmpec.pl')
-rwxr-xr-x | tools/make-sminmpec.pl | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tools/make-sminmpec.pl b/tools/make-sminmpec.pl index e1a9afaf5b..339532f459 100755 --- a/tools/make-sminmpec.pl +++ b/tools/make-sminmpec.pl @@ -19,6 +19,7 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + use strict; use File::Spec; @@ -48,12 +49,6 @@ if($in =~ m/^http:/i) { my $request = HTTP::Request->new(GET => $in); - if (-f "enterprise-numbers") { - my $mtime; - (undef,undef,undef,undef,undef,undef,undef,undef,undef,$mtime,undef,undef,undef) = stat("enterprise-numbers"); - $request->if_modified_since( $mtime ); - } - my $result = $agent->request($request); if ($result->code eq 200) { @@ -127,11 +122,14 @@ print OUT <<"_SMINMPEC"; /* * THIS FILE IS AUTOGENERATED, DO NOT EDIT * generated from http://www.iana.org/assignments/enterprise-numbers - * run "tools/make-sminmspec <infile> <outfile>" to regenerate + * run "tools/make-sminmpec.pl <infile> <outfile>" to regenerate + * + * Note 1: "Gaps" in the iana enterprise-numbers list have been "filled in" + * with "(Unknown)" as the name so that direct (indexed) access to + * the list is possible. * - * Note: "Gaps" in the iana enterprise-numbers list have been "filled in" - * with "(Unknown)" as the name so that direct (indexed) access - * to the list is possible. + * Note 2: We should probably parse "enterprise-numbers" at program start + * instead of generating this file. */ #include "config.h" |