set -x echo "# copying header..." mkdir -p lib/include cp rgfw/RGFW.h lib/include/RGFW.h echo "# creating flags for hs-bindgen-cli..." export CFLAGS=$(pkg-config --cflags x11 xcursor xrandr xi gl xrender xext xfixes) HBC_ARGS="" for token in $CFLAGS; do case "$token" in -I* ) HBC_ARGS="$HBC_ARGS $token" ;; -D* ) HBC_ARGS="$HBC_ARGS --define-macro ${token#-D}" ;; * ) HBC_ARGS="$HBC_ARGS --clang-option $token" ;; esac done echo "# creating c file from header..." cat > lib/RGFW.c <