home *** CD-ROM | disk | FTP | other *** search
- #! sh
- #
- # Frontend for getoddstruct.pl
- #
-
- # set source directory here
- SOURCEDIR=/gg/os-include
-
- echo >/t/tmp2
-
- echo Generating script for os-includes ...
- (cd $SOURCEDIR; find -iname *.h -printf "perl getoddstructs.pl $SOURCEDIR/%p >/t/tmp.c ; gcc -o /t/tmp /t/tmp.c; /t/tmp >>/t/tmp2 \n" | grep -v pragma | grep -v inline | grep -v proto >/t/getoddstructs)
-
- . /t/getoddstructs
-
- sort /t/tmp2 | uniq
-
- rm -f /t/getoddstructs /t/tmp /t/tmp.c /t/tmp2
-
-