Linuxize: Split git-extract.sh into two scripts.

This patch splits git-extract.sh so that the changes made in the
scripts can be linuxized into patches. Lv Zheng.