1*6a54128fSAndroid Build Coastguard Worker# Sed script that remove the POT-Creation-Date line in the header entry 2*6a54128fSAndroid Build Coastguard Worker# from a POT file. 3*6a54128fSAndroid Build Coastguard Worker# 4*6a54128fSAndroid Build Coastguard Worker# The distinction between the first and the following occurrences of the 5*6a54128fSAndroid Build Coastguard Worker# pattern is achieved by looking at the hold space. 6*6a54128fSAndroid Build Coastguard Worker/^"POT-Creation-Date: .*"$/{ 7*6a54128fSAndroid Build Coastguard Workerx 8*6a54128fSAndroid Build Coastguard Worker# Test if the hold space is empty. 9*6a54128fSAndroid Build Coastguard Workers/P/P/ 10*6a54128fSAndroid Build Coastguard Workerta 11*6a54128fSAndroid Build Coastguard Worker# Yes it was empty. First occurrence. Remove the line. 12*6a54128fSAndroid Build Coastguard Workerg 13*6a54128fSAndroid Build Coastguard Workerd 14*6a54128fSAndroid Build Coastguard Workerbb 15*6a54128fSAndroid Build Coastguard Worker:a 16*6a54128fSAndroid Build Coastguard Worker# The hold space was nonempty. Following occurrences. Do nothing. 17*6a54128fSAndroid Build Coastguard Workerx 18*6a54128fSAndroid Build Coastguard Worker:b 19*6a54128fSAndroid Build Coastguard Worker} 20