ExtractHDKHeaderFiles

From Odwiki

Jump to: navigation, search


As of Houdini 7, it is no longer necessary to use this method. Simply run hdkinstall.

An easy way to extract the header files from the HDK may be accomplished via a shell script along the lines of:

#!/bin/csh 

# first, create a list of files to extract from the HDK dbase
hviewfile -l > file_list.txt

# create a list of directories to create
cat file_list.txt | cut -f 1 -d '/' | sort | uniq > dir_list.txt

# If on a Windoze machine, remove the \r character
dos2unix dir_list.txt

foreach dir (`cat dir_list.txt`)
  if(-d $dir) then
    echo directory $dir exists
  else
    mkdir $dir
  endif
end

# Now extract the header files from the HDK dbase
foreach f (`cat file_list.txt`)
    hviewfile $f > $f
end 

# Now run doxygen on the header files
doxygen Doxy_config.cfg 

exit 0
© 2009 od[force].net | advertise