Packs a file using the GZip or BZip2 algorithm. The output file is only generated if it doesn't exist or the source file is newer.