Preprocess entry file