#!/usr/bin/perl -w #$FreeBSD: releng/12.1/sys/dev/cxgb/bin2h.pl 326255 2017-11-27 14:52:40Z pfg $ #$BSDSUniX $ 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 = <