While in
Portugal that you will not have a option but to buy a new one and use it before you leave, in the event you miss your passport. The requirements to acquire a Portugal Schengen Visa are strict and this might well make your journey a hardship.