add generation of stamp file

@tfoote Please review.