Add --auto mode to gen-tarball
* packages/gen-tarball.sh: Add --auto to update packages.common directly.
Usage example ./gen-tarball.sh poppler --auto
To update the corresponding packages.common snippet instead
of just printing it.
(cherry picked from commit 0182747d83e89a0808bdeedd667e1f4933e9c340)