<project name="kernel/lk" path="bootable/bootloader/lk" revision="e48c9314142c2ae93619ccd14aba2bc975165ffd"/>
<Project name="device/google/contexthub" revision="c453c8b8fb25fb8e1c59e8288331a70dbff44061" />
I have above two lines in a file. I need to get the path and revision , If path is not available in the line it has to get the name and revision as output and save in a file
Expected output :
name="kernel/lk" , revision="e48c9314142c2ae93619ccd14aba2bc975165ffd"
path="device/google/contexthub" , revision="c453c8b8fb25fb8e1c59e8288331a70dbff44061"
It will be great helpful,if someone gives me the code snippet.