branches: 1.2.46;rcs id cleanups
add a script which can be used ot build a distribution image
Sync with HEAD.