#!/usr/bin/env bash

sed -e '/^\$CHPL_HOME\/modules\//d' < $2 | \
head -1 > $2.tmp && mv $2.tmp $2
