It's a shell script, just look into it if you are interested :) What the script does is also documented: https://en.opensuse.org/openSUSE:Usr_merge#How_the_conversion_works_technically