Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[r605]: trunk / plugins_src / fbx / op_to_h.pl Maximize Restore History

Download this file

op_to_h.pl    27 lines (26 with data), 609 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# op_to_hrl.pl --
#
# Convert the fbx.ops file to a .h file (suitable for including from
# the driver.
#
# Copyright (c) 2003-2005 Bjorn Gustavsson
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# $Id: op_to_h.pl,v 1.1 2005/03/11 05:55:48 bjorng Exp $
#
print "/*\n";
print " * Automatically generated by $0 -- DO NOT EDIT.\n";
print " * Generation date: ", `date`;
print " */\n";
$i = 0;
while (<>) {
chomp;
s/\r$//;
s/#.*$//;
next if m/^\s*$/;
print "#define $_ $i\n";
$i++;
}