#!/usr/bin/perl -w #$FreeBSD: src/sys/dev/cxgb/bin2h.pl,v 1.3.2.1.4.1 2010/06/14 02:09:06 kensmith Exp $ if ($#ARGV != 1) { print "bin2h.pl \n"; exit 1; } my $success = open INPUT, "$ARGV[0]"; unless ($success) { print "failed to open input\n"; exit 1; } $success = open OUTPUT, ">$ARGV[1].h"; unless ($success) { print "failed to open output\n"; exit 1; } my $license = <