the full script would be:
It creates new odex files for any apks that don't have an odex or have an older odex and it removes odex files for any removed apk, first it does this for system files then it does this for data files (market apps).