1 #!/bin/bash
 2 
 3 jextract --source -t jdk.internal.clang.libclang -lclang \
 4   -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ \
 5   -I ${LIBCLANG_HOME}/include/ \
 6   -I ${LIBCLANG_HOME}/include/clang-c \
 7   @clang.symbols \
 8   ${LIBCLANG_HOME}/include/clang-c/Index.h
 9 
10 
11 for x in jdk/internal/clang/libclang/*.java; do
12 head -$COPYRIGHTLEN $x | diff cp_header.txt - || ( ( cat cp_header.txt; echo; cat $x) > /tmp/file;
13 mv /tmp/file $x )
14 done